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; |