summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/tab_contents.cc
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 04:12:23 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 04:12:23 +0000
commit1684454ab14fd8b2eefcf97289f7e8f6b81c55a9 (patch)
treeb1c632ba6273eb915c3d57e64c53e9e655a5cc5d /content/browser/tab_contents/tab_contents.cc
parent71f55847499f7fa45e4468c27d593eb18f20fb10 (diff)
downloadchromium_src-1684454ab14fd8b2eefcf97289f7e8f6b81c55a9.zip
chromium_src-1684454ab14fd8b2eefcf97289f7e8f6b81c55a9.tar.gz
chromium_src-1684454ab14fd8b2eefcf97289f7e8f6b81c55a9.tar.bz2
Get more data to diagnose a crash.
BUG=72235 TEST=none Review URL: http://codereview.chromium.org/9834067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128683 0039d316-1c4b-4281-b951-d872f2087c98
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(