Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10548)

Unified Diff: chrome_frame/urlmon_moniker.cc

Issue 6493002: A number of poorly written IE BHO's crash IE if ChromeFrame is the currently ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_frame/urlmon_moniker.cc
===================================================================
--- chrome_frame/urlmon_moniker.cc (revision 74374)
+++ chrome_frame/urlmon_moniker.cc (working copy)
@@ -81,14 +81,17 @@
return thread_singleton_.Pointer()->Get();
}
-void NavigationManager::RegisterThreadInstance() {
+void NavigationManager::RegisterThreadInstance(IWebBrowser2* web_browser2) {
DCHECK(GetThreadInstance() == NULL);
+ DCHECK(web_browser2 != NULL);
thread_singleton_.Pointer()->Set(this);
+ web_browser2_ = web_browser2;
}
void NavigationManager::UnregisterThreadInstance() {
DCHECK(GetThreadInstance() == this);
thread_singleton_.Pointer()->Set(NULL);
+ web_browser2_.Release();
}
/////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698