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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 1943683002: Refactor OmniboxEditModel::user_text_ to not include keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test coverage & refactor 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
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 dd9cdba9a22e43272801b813c2f35418a4ff7147..efcb9d8ff4e2d9393484d516da9ad8af711c1417 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -271,10 +271,9 @@ base::string16 OmniboxViewViews::GetText() const {
}
void OmniboxViewViews::SetUserText(const base::string16& text,
- const base::string16& display_text,
bool update_popup) {
saved_selection_for_focus_change_ = gfx::Range::InvalidRange();
- OmniboxView::SetUserText(text, display_text, update_popup);
+ OmniboxView::SetUserText(text, update_popup);
}
void OmniboxViewViews::SetForcedQuery() {
@@ -435,7 +434,7 @@ bool OmniboxViewViews::HandleEarlyTabActions(const ui::KeyEvent& event) {
}
void OmniboxViewViews::AccessibilitySetValue(const base::string16& new_value) {
- SetUserText(new_value, new_value, true);
+ SetUserText(new_value, true);
}
void OmniboxViewViews::UpdateSecurityLevel() {
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.h ('k') | components/omnibox/browser/omnibox_edit_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698