Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginClass.cpp

Issue 29317083: Issue 1490 - Enable pre-configurable properties in Internet Explorer (Closed)
Patch Set: Created June 19, 2015, 1:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« src/engine/Main.cpp ('K') | « src/engine/Main.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 908
909 HDC hdc = GetWindowDC(m_hStatusBarWnd); 909 HDC hdc = GetWindowDC(m_hStatusBarWnd);
910 SendMessage(m_hStatusBarWnd, WM_PAINT, (WPARAM)hdc, 0); 910 SendMessage(m_hStatusBarWnd, WM_PAINT, (WPARAM)hdc, 0);
911 ReleaseDC(m_hStatusBarWnd, hdc); 911 ReleaseDC(m_hStatusBarWnd, hdc);
912 912
913 return true; 913 return true;
914 } 914 }
915 915
916 void CPluginClass::FirstRunThread() 916 void CPluginClass::FirstRunThread()
917 { 917 {
918 // Just return if the First Run Page should be suppressed
919 if (CPluginClient::GetInstance()->GetPref(L"suppress_first_run_page", false))
Eric 2015/06/19 14:51:41 I dislike the way that default values for preferen
Oleksandr 2015/06/22 08:27:53 I agree, but yes, I think it's out of scope here.
920 return;
921
918 CoInitialize(NULL); 922 CoInitialize(NULL);
919 VARIANT vFlags; 923 VARIANT vFlags;
920 vFlags.vt = VT_I4; 924 vFlags.vt = VT_I4;
921 vFlags.intVal = navOpenInNewTab; 925 vFlags.intVal = navOpenInNewTab;
922 926
923 CComBSTR navigatePath = CComBSTR(FirstRunPageFileUrl().c_str()); 927 CComBSTR navigatePath = CComBSTR(FirstRunPageFileUrl().c_str());
924 928
925 HRESULT hr = GetAsyncBrowser()->Navigate(navigatePath, &vFlags, NULL, NULL, NU LL); 929 HRESULT hr = GetAsyncBrowser()->Navigate(navigatePath, &vFlags, NULL, NULL, NU LL);
926 if (FAILED(hr)) 930 if (FAILED(hr))
927 { 931 {
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 s_criticalSectionLocal.Unlock(); 1732 s_criticalSectionLocal.Unlock();
1729 1733
1730 } 1734 }
1731 } 1735 }
1732 } 1736 }
1733 1737
1734 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1738 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1735 } 1739 }
1736 return hTabWnd; 1740 return hTabWnd;
1737 } 1741 }
OLDNEW
« src/engine/Main.cpp ('K') | « src/engine/Main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld