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

Unified Diff: components/omnibox/browser/omnibox_edit_model.h

Issue 2763063002: [omnibox] Narrow condition for resetting selection (Closed)
Patch Set: Added interactive test Created 3 years, 8 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_edit_model.h
diff --git a/components/omnibox/browser/omnibox_edit_model.h b/components/omnibox/browser/omnibox_edit_model.h
index f6118843eed631cebeec07e5f9801f7e61e62d3b..a49c096f0ee915755d926f6b9826a0537e52cdbf 100644
--- a/components/omnibox/browser/omnibox_edit_model.h
+++ b/components/omnibox/browser/omnibox_edit_model.h
@@ -160,6 +160,9 @@ class OmniboxEditModel {
// Returns the URL corresponding to the permanent text.
GURL PermanentURL() const;
+ // Returns the raw permanent text.
+ base::string16 PermanentText() { return permanent_text_; }
Peter Kasting 2017/04/10 23:04:13 Nit: const base::string16& permanent_text() const
Kevin Bailey 2017/04/11 14:12:42 Done.
+
// Sets the user_text_ to |text|. Only the View should call this.
void SetUserText(const base::string16& text);

Powered by Google App Engine
This is Rietveld 408576698