Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index bf9f813d53e8d60967e8b9b3aafc20ea317449e2..3b7934461f00a0d30faf606821bc0e1033b5118f 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -1063,8 +1063,12 @@ bool TabContents::NavigateToEntry( |
#if defined(OS_CHROMEOS) |
is_allowed_in_web_ui_renderer |= entry.GetURL().SchemeIs(chrome::kDataScheme); |
#endif |
- CHECK(!(enabled_bindings & content::BINDINGS_POLICY_WEB_UI) || |
- is_allowed_in_web_ui_renderer); |
+ if ((enabled_bindings & content::BINDINGS_POLICY_WEB_UI) && |
+ !is_allowed_in_web_ui_renderer) { |
+ // Log the URL to help us diagnose this. |
jam
2012/03/23 22:12:38
nit: please add the bug number here so we can trac
Charlie Reis
2012/03/23 22:23:13
Done.
|
+ content::GetContentClient()->SetActiveURL(entry.GetURL()); |
+ CHECK(0); |
+ } |
// Tell DevTools agent that it is attached prior to the navigation. |
DevToolsManagerImpl::GetInstance()->OnNavigatingToPendingEntry( |