From 83e3895bc2eeaa88fb6f7173be546d3114bc1f7b Mon Sep 17 00:00:00 2001 From: "mhm@chromium.org" Date: Thu, 11 Jun 2009 00:07:16 +0000 Subject: Hide URL from extension pages. We can't do the same as we do for NTP because NTP is a DOMUI whereas chrome-extensions is just a normal webpage. Adding functionality within TabContents::ShouldDisplayURL() would be sufficient to tell the ombibox not to display the URL. BUG=12371 (http://crbug.com/12371) TEST=Tested chrome-extension://id/hello_world.html Review URL: http://codereview.chromium.org/119406 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18117 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/tab_contents.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome') diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 3247230..6b45c3e 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -489,6 +489,11 @@ bool TabContents::ShouldDisplayURL() { NavigationEntry* entry = controller_.GetActiveEntry(); if (entry && entry->IsViewSourceMode()) return true; + + // Hide the URL in chrome-extension://. + if (GetURL().SchemeIs(chrome::kExtensionScheme)) + return false; + DOMUI* dom_ui = GetDOMUIForCurrentState(); if (dom_ui) return !dom_ui->should_hide_url(); -- cgit v1.1