Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3087)

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 1104513003: Omnibox: Remove Hint Text Code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed WITH_DEFAULT_SEARCH_PROVIDER part of string Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698