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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

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: Not hacky anymore 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/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index ef77a346681615b92c406fa17d2bd14b8e564654..555ce90be54a4754e9f6e10f8baedb6a1146033a 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -802,7 +802,7 @@ void OmniboxViewViews::EmphasizeURLComponents() {
const bool emphasize = model()->CurrentTextIsURL() && (host.len > 0);
SetColor(location_bar_view_->GetColor(security_level_,
emphasize ? LocationBarView::DEEMPHASIZED_TEXT : LocationBarView::TEXT));
- if (emphasize) {
+ if (emphasize && !toolbar_model()->ShouldNotEmphasizeHost()) {
ApplyColor(
location_bar_view_->GetColor(security_level_, LocationBarView::TEXT),
ui::Range(host.begin, host.end()));

Powered by Google App Engine
This is Rietveld 408576698