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())); |