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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2702463004: Re-display chrome:// page location icon label after aborted search (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index c05e17d1005671e6b577b98b74c0150bd115546e..f8fcc1ac5c3711262939ad01ff92a1495443f511 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -874,11 +874,11 @@ base::string16 LocationBarView::GetLocationIconText() const {
bool LocationBarView::ShouldShowKeywordBubble() const {
return !omnibox_view_->model()->keyword().empty() &&
- !omnibox_view_->model()->is_keyword_hint();
+ !omnibox_view_->model()->is_keyword_hint();
}
bool LocationBarView::ShouldShowLocationIconText() const {
- if (!GetOmniboxView()->IsEditingOrEmpty() &&
+ if (!GetToolbarModel()->input_in_progress() &&
(GetToolbarModel()->GetURL().SchemeIs(content::kChromeUIScheme) ||
GetToolbarModel()->GetURL().SchemeIs(extensions::kExtensionScheme)))
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698