Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: chrome/browser/ui/toolbar/toolbar_model.cc

Issue 8224023: Don't show URL for pending new navigations initiated by the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsBrowserInitiated helper. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/toolbar_model.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_model.cc b/chrome/browser/ui/toolbar/toolbar_model.cc
index 9394410d511a76d1055adbc7cb6152c56060856e..6cd432b8149c51aebc7c1992d5fb2153748d8831 100644
--- a/chrome/browser/ui/toolbar/toolbar_model.cc
+++ b/chrome/browser/ui/toolbar/toolbar_model.cc
@@ -77,8 +77,8 @@ bool ToolbarModel::ShouldDisplayURL() const {
}
TabContents* tab_contents = browser_->GetSelectedTabContents();
- if (tab_contents && tab_contents->web_ui())
- return !tab_contents->web_ui()->should_hide_url();
+ if (tab_contents && tab_contents->GetWebUIForCurrentState())
+ return !tab_contents->GetWebUIForCurrentState()->should_hide_url();
if (entry && entry->url().SchemeIs(chrome::kExtensionScheme))
return false;

Powered by Google App Engine
This is Rietveld 408576698