Index: chrome/browser/ui/toolbar/toolbar_model_impl.cc |
diff --git a/chrome/browser/ui/toolbar/toolbar_model_impl.cc b/chrome/browser/ui/toolbar/toolbar_model_impl.cc |
index a6305b89d26aacb91b05b04d6a2a343b74712dd0..f1c98c66aef65012f0edd6fe5771d1a9980a0602 100644 |
--- a/chrome/browser/ui/toolbar/toolbar_model_impl.cc |
+++ b/chrome/browser/ui/toolbar/toolbar_model_impl.cc |
@@ -179,6 +179,13 @@ bool ToolbarModelImpl::ShouldDisplayURL() const { |
return true; |
} |
+bool ToolbarModelImpl::ShouldGreyOutURL() const { |
+ WebContents* web_contents = delegate_->GetActiveWebContents(); |
+ if (web_contents && web_contents->GetWebUIForCurrentState()) |
+ return web_contents->GetWebUIForCurrentState()->ShouldGreyOutURL(); |
+ return false; |
+} |
+ |
ToolbarModel::SecurityLevel ToolbarModelImpl::GetSecurityLevel() const { |
if (input_in_progress_) // When editing, assume no security style. |
return NONE; |