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

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: 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/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 da818a509595d4c6f32d2b36ebfd927b4f9882e4..3befaf63d3aa30e87ef1aaa87d521c71e1b5b52f 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -821,7 +821,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()->ShouldGreyOutURL()) {
ApplyColor(
location_bar_view_->GetColor(security_level_, LocationBarView::TEXT),
ui::Range(host.begin, host.end()));

Powered by Google App Engine
This is Rietveld 408576698