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

Unified Diff: components/omnibox/browser/omnibox_view.cc

Issue 1943683002: Refactor OmniboxEditModel::user_text_ to not include keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore keyword state on tab switch 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: components/omnibox/browser/omnibox_view.cc
diff --git a/components/omnibox/browser/omnibox_view.cc b/components/omnibox/browser/omnibox_view.cc
index 040058110f8b306908d97da35b543b67dc424af1..a4359ced920fc07f9fb808f38a94be31dd567e5b 100644
--- a/components/omnibox/browser/omnibox_view.cc
+++ b/components/omnibox/browser/omnibox_view.cc
@@ -113,16 +113,14 @@ gfx::VectorIconId OmniboxView::GetVectorIcon(bool invert) const {
}
void OmniboxView::SetUserText(const base::string16& text) {
- SetUserText(text, text, true);
+ SetUserText(text, true);
}
void OmniboxView::SetUserText(const base::string16& text,
- const base::string16& display_text,
bool update_popup) {
if (model_.get())
model_->SetUserText(text);
- SetWindowTextAndCaretPos(display_text, display_text.length(), update_popup,
- true);
+ SetWindowTextAndCaretPos(text, text.length(), update_popup, true);
}
void OmniboxView::ShowURL() {
« components/omnibox/browser/omnibox_edit_model.cc ('K') | « components/omnibox/browser/omnibox_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698