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 4e63e235f8b0f0ee97b403c18fcbcb9d8d11e715..baee746bcc620da28012b76c1f3a44f658d1d88c 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()) |
sky
2013/04/03 04:03:57
nit: make this a single return, eg:
return web_con
|
+ return web_contents->GetWebUIForCurrentState()->ShouldGreyOutURL(); |
+ return false; |
+} |
+ |
ToolbarModel::SecurityLevel ToolbarModelImpl::GetSecurityLevel() const { |
if (input_in_progress_) // When editing, assume no security style. |
return NONE; |