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

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

Issue 2763063002: [omnibox] Narrow condition for resetting selection (Closed)
Patch Set: Restored include file Created 3 years, 9 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
« no previous file with comments | « components/omnibox/browser/omnibox_edit_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/omnibox_edit_model.cc
diff --git a/components/omnibox/browser/omnibox_edit_model.cc b/components/omnibox/browser/omnibox_edit_model.cc
index 3e195f8bb0ac10890e77d55f23da405a34e1a9ce..4d4db3648aa6e33d98efada9acc0d1e4da66b1ba 100644
--- a/components/omnibox/browser/omnibox_edit_model.cc
+++ b/components/omnibox/browser/omnibox_edit_model.cc
@@ -338,6 +338,11 @@ void OmniboxEditModel::AdjustTextForCopy(int sel_min,
}
}
+bool OmniboxEditModel::text_update_in_progress() const {
+ return permanent_text_ !=
+ controller_->GetToolbarModel()->GetFormattedURL(nullptr);
Peter Kasting 2017/03/21 22:47:18 Why would the |permanent_text_| be out of sync wit
Kevin Bailey 2017/03/23 13:14:37 The comment in ::OnBlur() implies that some update
Peter Kasting 2017/03/23 21:52:12 The paragraph I wrote describes the place this is
Kevin Bailey 2017/04/10 18:49:30 I haven't seen anything different. The code was my
+}
+
void OmniboxEditModel::SetInputInProgress(bool in_progress) {
if (in_progress && !user_input_since_focus_) {
base::TimeTicks now = base::TimeTicks::Now();
« no previous file with comments | « components/omnibox/browser/omnibox_edit_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698