diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 00:07:16 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 00:07:16 +0000 |
commit | 83e3895bc2eeaa88fb6f7173be546d3114bc1f7b (patch) | |
tree | 3aacf7c5e66db9687ec2b06346f7e2c53920fd89 | |
parent | 1bd5413c93779467e15c402e5bb1c866792bcac6 (diff) | |
download | chromium_src-83e3895bc2eeaa88fb6f7173be546d3114bc1f7b.zip chromium_src-83e3895bc2eeaa88fb6f7173be546d3114bc1f7b.tar.gz chromium_src-83e3895bc2eeaa88fb6f7173be546d3114bc1f7b.tar.bz2 |
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
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |