summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/tab_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/tab_contents/tab_contents.cc')
-rw-r--r--content/browser/tab_contents/tab_contents.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 930976c..aa7d8e0 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1061,8 +1061,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 http://crbug.com/72235.
+ content::GetContentClient()->SetActiveURL(entry.GetURL());
+ CHECK(0);
+ }
// Tell DevTools agent that it is attached prior to the navigation.
DevToolsManagerImpl::GetInstance()->OnNavigatingToPendingEntry(