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

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

Issue 2510373003: Cleanup: Remove "gray text" logic from Omnibox (Closed)
Patch Set: mac Created 4 years, 1 month 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/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 3ec108941627aabe33a6f287ed1ad0c8858f982a..666a5f3b9727820a1ed4a788a68d8232e41bd479 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -432,20 +432,6 @@ void LocationBarView::SetImeInlineAutocompletion(const base::string16& text) {
ime_inline_autocomplete_view_->SetVisible(!text.empty());
}
-void LocationBarView::SetGrayTextAutocompletion(const base::string16& text) {
- if (suggested_text_view_->text() != text) {
- suggested_text_view_->SetText(text);
- suggested_text_view_->SetVisible(!text.empty());
- Layout();
- SchedulePaint();
- }
-}
-
-base::string16 LocationBarView::GetGrayTextAutocompletion() const {
- return HasValidSuggestText() ?
- suggested_text_view_->text() : base::string16();
Peter Kasting 2016/11/21 21:11:43 suggested_text_view_ and HasValidSuggestText() sho
Marc Treib 2016/11/22 10:35:30 Done.
-}
-
void LocationBarView::SetShowFocusRect(bool show) {
show_focus_rect_ = show;
SchedulePaint();

Powered by Google App Engine
This is Rietveld 408576698