| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2015 Eyeo GmbH | 3  * Copyright (C) 2006-2015 Eyeo GmbH | 
| 4  * | 4  * | 
| 5  * Adblock Plus is free software: you can redistribute it and/or modify | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6  * it under the terms of the GNU General Public License version 3 as | 6  * it under the terms of the GNU General Public License version 3 as | 
| 7  * published by the Free Software Foundation. | 7  * published by the Free Software Foundation. | 
| 8  * | 8  * | 
| 9  * Adblock Plus is distributed in the hope that it will be useful, | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 698       return false; | 698       return false; | 
| 699     } | 699     } | 
| 700   } | 700   } | 
| 701 | 701 | 
| 702   int ieVersion = AdblockPlus::IE::InstalledMajorVersion(); | 702   int ieVersion = AdblockPlus::IE::InstalledMajorVersion(); | 
| 703   // Create status pane | 703   // Create status pane | 
| 704   if (ieVersion > 6 && !CreateStatusBarPane()) | 704   if (ieVersion > 6 && !CreateStatusBarPane()) | 
| 705   { | 705   { | 
| 706     return false; | 706     return false; | 
| 707   } | 707   } | 
| 708 |  | 
| 709   s_criticalSectionLocal.Lock(); | 708   s_criticalSectionLocal.Lock(); | 
| 710   int versionCompRes = CPluginClient::GetInstance()->CompareVersions(CPluginClie
      nt::GetInstance()->GetPref(L"currentVersion", L"0.0"), L"1.2"); | 709   std::wstring curVer = CPluginClient::GetInstance()->GetPref(L"currentVersion",
       L"0.0"); | 
|  | 710   // The plugin version can be "simpleadblock", which doesn't have the "." | 
|  | 711   if (curVer.find(L".") == std::wstring::npos) | 
|  | 712   { | 
|  | 713     CPluginClient::GetInstance()->SetPref(L"convertedFrom", curVer); | 
|  | 714   } | 
|  | 715   int versionCompRes = CPluginClient::GetInstance()->CompareVersions(curVer, L"1
      .2"); | 
| 711 | 716 | 
| 712   bool isFirstRun = CPluginClient::GetInstance()->IsFirstRun(); | 717   bool isFirstRun = CPluginClient::GetInstance()->IsFirstRun(); | 
| 713   CPluginClient::GetInstance()->SetPref(L"currentVersion", std::wstring(IEPLUGIN
      _VERSION)); | 718   CPluginClient::GetInstance()->SetPref(L"currentVersion", std::wstring(IEPLUGIN
      _VERSION)); | 
| 714   // This is the first time ABP was installed | 719   // This is the first time ABP was installed | 
| 715   // Or ABP was updated from the version that did not support Acceptable Ads (<1
      .2) | 720   // Or ABP was updated from the version that did not support Acceptable Ads (<1
      .2) | 
| 716   if (isFirstRun || versionCompRes < 0) | 721   if (isFirstRun || versionCompRes < 0) | 
| 717   { | 722   { | 
| 718     if (!isFirstRun) | 723     if (!isFirstRun) | 
| 719     { | 724     { | 
| 720       CPluginClient::GetInstance()->SetPref(L"displayUpdatePage", true); | 725       // Display an update page only if it's not a conversion from other product | 
|  | 726       if (CPluginClient::GetInstance()->GetPref(L"convertedFrom", L"") == L"") | 
|  | 727       { | 
|  | 728         CPluginClient::GetInstance()->SetPref(L"displayUpdatePage", true); | 
|  | 729       } | 
| 721     } | 730     } | 
| 722 | 731 | 
| 723     // IE6 can't be accessed from another thread, execute in current thread | 732     // IE6 can't be accessed from another thread, execute in current thread | 
| 724     if (ieVersion < 7) | 733     if (ieVersion < 7) | 
| 725     { | 734     { | 
| 726       FirstRunThread(); | 735       FirstRunThread(); | 
| 727     } | 736     } | 
| 728     else | 737     else | 
| 729     { | 738     { | 
| 730       CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)CPluginClass::FirstRunThr
      ead, NULL, NULL, NULL); | 739       CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)CPluginClass::FirstRunThr
      ead, NULL, NULL, NULL); | 
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1732           s_criticalSectionLocal.Unlock(); | 1741           s_criticalSectionLocal.Unlock(); | 
| 1733 | 1742 | 
| 1734         } | 1743         } | 
| 1735       } | 1744       } | 
| 1736     } | 1745     } | 
| 1737 | 1746 | 
| 1738     hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); | 1747     hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); | 
| 1739   } | 1748   } | 
| 1740   return hTabWnd; | 1749   return hTabWnd; | 
| 1741 } | 1750 } | 
| OLD | NEW | 
|---|