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

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

Issue 11756012: Enhanced Protected Mode support (Closed)
Patch Set: Addressing comments Created Sept. 17, 2013, 2:51 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
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginClass.h" 3 #include "PluginClass.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #include "PluginSystem.h" 5 #include "PluginSystem.h"
6 #ifdef SUPPORT_FILTER 6 #ifdef SUPPORT_FILTER
7 #include "PluginFilter.h" 7 #include "PluginFilter.h"
8 #endif 8 #endif
9 #include "PluginMimeFilterClient.h" 9 #include "PluginMimeFilterClient.h"
10 #include "PluginClient.h" 10 #include "PluginClient.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // so we should handle that it is called this way several times during a session 232 // so we should handle that it is called this way several times during a session
233 STDMETHODIMP CPluginClass::SetSite(IUnknown* unknownSite) 233 STDMETHODIMP CPluginClass::SetSite(IUnknown* unknownSite)
234 { 234 {
235 CPluginSettings* settings = CPluginSettings::GetInstance(); 235 CPluginSettings* settings = CPluginSettings::GetInstance();
236 CPluginSystem* system = CPluginSystem::GetInstance(); 236 CPluginSystem* system = CPluginSystem::GetInstance();
237 237
238 MULTIPLE_VERSIONS_CHECK(); 238 MULTIPLE_VERSIONS_CHECK();
239 239
240 if (unknownSite) 240 if (unknownSite)
241 { 241 {
242
242 DEBUG_GENERAL(L"============================================================ ====================\nNEW TAB UI\n============================================== ==================================") 243 DEBUG_GENERAL(L"============================================================ ====================\nNEW TAB UI\n============================================== ==================================")
243 244
244 HRESULT hr = ::CoInitialize(NULL); 245 HRESULT hr = ::CoInitialize(NULL);
245 if (FAILED(hr)) 246 if (FAILED(hr))
246 { 247 {
247 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SET_SITE, PLUGIN_ERROR_SET_SITE_COINIT, " Class::SetSite - CoInitialize"); 248 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SET_SITE, PLUGIN_ERROR_SET_SITE_COINIT, " Class::SetSite - CoInitialize");
248 } 249 }
249 250
250 s_criticalSectionBrowser.Lock(); 251 s_criticalSectionBrowser.Lock();
251 { 252 {
(...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 } 1913 }
1913 } 1914 }
1914 } 1915 }
1915 1916
1916 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1917 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1917 } 1918 }
1918 1919
1919 return hTabWnd; 1920 return hTabWnd;
1920 1921
1921 } 1922 }
OLDNEW

Powered by Google App Engine
This is Rietveld