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

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

Issue 12463042: Shows chrome-extension urls and greys out the whole url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the correct extra newline Created 7 years, 9 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
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 7c43e06e2f237258354e806bed41ba0ca6ab2d37..68fb0b6a1b5c187bfae8a0606f017a1367b259cc 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
@@ -455,8 +455,10 @@ void OmniboxViewMac::ApplyTextAttributes(const string16& display_text,
[as addAttribute:NSForegroundColorAttributeName value:BaseTextColor()
range:as_entire_string];
- [as addAttribute:NSForegroundColorAttributeName value:HostTextColor()
+ if (!toolbar_model()->ShouldGreyOutURL()) {
+ [as addAttribute:NSForegroundColorAttributeName value:HostTextColor()
range:ComponentToNSRange(host)];
+ }
}
// TODO(shess): GTK has this as a member var, figure out why.

Powered by Google App Engine
This is Rietveld 408576698