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

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

Issue 2763063002: [omnibox] Narrow condition for resetting selection (Closed)
Patch Set: Some attempts 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..fdf7d9305e5a16c2cda1cd0c5f4ae6c4121ee200 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.
+ const base::string16& PermanentText() { return permanent_text_; }
+
// 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