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

Unified Diff: chrome_frame/bho_loader.cc

Issue 7065024: Add a self-destruct mechanism to user-level Chrome Frame when it detects that system-level Chrome... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/bho_loader.cc
===================================================================
--- chrome_frame/bho_loader.cc (revision 85906)
+++ chrome_frame/bho_loader.cc (working copy)
@@ -71,6 +71,13 @@
UtilGetWebBrowserObjectFromWindow(browser_hwnd, __uuidof(browser),
reinterpret_cast<void**>(&browser));
if (browser) {
+
+ if (IsSystemLevelChromeFrameInstalled()) {
+ // We're in the right place, but a system-level installation has
+ // appeared. We should leave now.
+ return;
+ }
+
// Figure out if we're already in the property map.
wchar_t bho_clsid_as_string[MAX_PATH] = {0};
StringFromGUID2(CLSID_ChromeFrameBHO, bho_clsid_as_string,

Powered by Google App Engine
This is Rietveld 408576698