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..04259d732327af65103915cd4c0e35ec239abe9e 100644 |
--- a/chrome/browser/ui/toolbar/toolbar_model_impl.cc |
+++ b/chrome/browser/ui/toolbar/toolbar_model_impl.cc |
@@ -179,6 +179,12 @@ bool ToolbarModelImpl::ShouldDisplayURL() const { |
return true; |
} |
+bool ToolbarModelImpl::ShouldGreyOutURL() const { |
+ WebContents* web_contents = delegate_->GetActiveWebContents(); |
+ return web_contents && web_contents->GetWebUIForCurrentState() && |
+ web_contents->GetWebUIForCurrentState()->ShouldGreyOutURL(); |
Peter Kasting
2013/04/04 21:07:05
Nit: Indent 4, not even
Patrick Riordan
2013/04/10 02:00:24
Done.
|
+} |
+ |
ToolbarModel::SecurityLevel ToolbarModelImpl::GetSecurityLevel() const { |
if (input_in_progress_) // When editing, assume no security style. |
return NONE; |