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

Unified Diff: chrome/browser/ui/search/instant_controller.h

Issue 13813006: Instant: Don't allow the page to set suggestions inappropriately. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_controller.h
diff --git a/chrome/browser/ui/search/instant_controller.h b/chrome/browser/ui/search/instant_controller.h
index f459e38818c510f58f6888db8e0addddc121e67b..fa3cd642c42c497b975666a945b35f49b2bd5879 100644
--- a/chrome/browser/ui/search/instant_controller.h
+++ b/chrome/browser/ui/search/instant_controller.h
@@ -398,7 +398,8 @@ class InstantController : public InstantPage::Delegate,
string16 last_omnibox_text_;
// The most recent user_text passed to Update(). Used to filter out-of-date
- // URL suggestions from the Instant page.
+ // URL suggestions from the Instant page. Set in Update() and cleared when
+ // the page sets temporary text (SetSuggestions() with REPLACE behavior).
string16 last_user_text_;
// True if the last Update() had an inline autocompletion. Used only to make
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698