Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
index a21ff09438943a0180b71f6b3ec0005ba0014c7e..bd9d61ff75e29907769dfd1a6ac9eb281b3010b0 100644 |
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
@@ -214,8 +214,6 @@ void OmniboxViewMac::ResetTabState(WebContents* web_contents) { |
} |
void OmniboxViewMac::Update() { |
- UpdatePlaceholderText(); |
- |
if (model()->UpdatePermanentText()) { |
// Something visibly changed. Re-enable URL replacement. |
controller()->GetToolbarModel()->set_url_replacement_enabled(true); |
@@ -237,20 +235,6 @@ void OmniboxViewMac::Update() { |
} |
} |
-void OmniboxViewMac::UpdatePlaceholderText() { |
- if (OmniboxFieldTrial::DisplayHintTextWhenPossible()) { |
- NSDictionary* placeholder_attributes = @{ |
- NSForegroundColorAttributeName : [NSColor disabledControlTextColor] |
- }; |
- base::scoped_nsobject<NSMutableAttributedString> placeholder_text( |
- [[NSMutableAttributedString alloc] |
- initWithString:base::SysUTF16ToNSString(GetHintText()) |
- attributes:placeholder_attributes]); |
- ApplyTextStyle(placeholder_text); |
- [[field_ cell] setPlaceholderAttributedString:placeholder_text]; |
- } |
-} |
- |
void OmniboxViewMac::OpenMatch(const AutocompleteMatch& match, |
WindowOpenDisposition disposition, |
const GURL& alternate_nav_url, |