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

Unified Diff: components/toolbar/toolbar_model_impl.cc

Issue 2028933002: Fix color of looking glass when searching on remote NTP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 7 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/views/location_bar/location_bar_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/toolbar_model_impl.cc
diff --git a/components/toolbar/toolbar_model_impl.cc b/components/toolbar/toolbar_model_impl.cc
index e515be465a9345260b45759571702615ca56b8cf..e8ae52e50805dc5870aafdb325b745b119ccfb1e 100644
--- a/components/toolbar/toolbar_model_impl.cc
+++ b/components/toolbar/toolbar_model_impl.cc
@@ -98,8 +98,8 @@ bool ToolbarModelImpl::WouldPerformSearchTermReplacement(
SecurityStateModel::SecurityLevel ToolbarModelImpl::GetSecurityLevel(
bool ignore_editing) const {
- // When editing, assume no security style.
- return (input_in_progress() && !ignore_editing)
+ // When editing or empty, assume no security style.
+ return ((input_in_progress() && !ignore_editing) || !ShouldDisplayURL())
? SecurityStateModel::NONE
: delegate_->GetSecurityLevel();
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698