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

Unified Diff: src/plugin/PluginClass.cpp

Issue 29319002: Issue 1737 - ABP 1.3 for IE sometimes blocks navigation to the ad from Google search results
Patch Set: Created June 22, 2015, 3 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginClass.cpp
diff --git a/src/plugin/PluginClass.cpp b/src/plugin/PluginClass.cpp
index 96a54d4c754e78d4246661b6aa27fd43958bdbbf..6552f81c0253c0a76d790bd31e0ce763fced0bf1 100644
--- a/src/plugin/PluginClass.cpp
+++ b/src/plugin/PluginClass.cpp
@@ -1003,6 +1003,11 @@ CPluginTab* CPluginClass::GetTab(DWORD dwThreadId)
return tab;
}
+bool CPluginClass::HasTabs()
+{
+ ATL::CComCritSecLock<CComAutoCriticalSection> lock(s_criticalSectionLocal);
+ return !s_threadInstances.empty();
+}
STDMETHODIMP CPluginClass::QueryStatus(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText)
{

Powered by Google App Engine
This is Rietveld