summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-22 18:49:47 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-22 18:49:47 +0000
commitecdf634e197d6041d705aa5ea4430938f44f5f91 (patch)
treed02993aa50e538e6b0c10bddc111d8fb557eded9 /chrome_frame/utils.cc
parentff24900ff80ace9c7dea9d08b0a74169a1904f56 (diff)
downloadchromium_src-ecdf634e197d6041d705aa5ea4430938f44f5f91.zip
chromium_src-ecdf634e197d6041d705aa5ea4430938f44f5f91.tar.gz
chromium_src-ecdf634e197d6041d705aa5ea4430938f44f5f91.tar.bz2
Implement OptInUrls using the same mechanism we use in the onhttpequiv notification.
A noteworthy change here is that OptInUrls doesn't rely on cf: anymore. TEST=The OptInUrls registry key should start working properly again. BUG=32660 Review URL: http://codereview.chromium.org/549129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r--chrome_frame/utils.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index 3ef49df..e0b407b 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -728,7 +728,8 @@ HRESULT NavigateBrowserToMoniker(IUnknown* browser, IMoniker* moniker,
void MarkBrowserOnThreadForCFNavigation(IBrowserService* browser) {
DCHECK(browser != NULL);
- DCHECK(g_tls_browser_for_cf_navigation.Pointer()->Get() == NULL);
+ DCHECK(g_tls_browser_for_cf_navigation.Pointer()->Get() == NULL ||
+ g_tls_browser_for_cf_navigation.Pointer()->Get() == browser);
g_tls_browser_for_cf_navigation.Pointer()->Set(browser);
}