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

Unified Diff: chrome/renderer/searchbox/searchbox.cc

Issue 12319108: Prevent querying of restricted query values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 83a9bd5fab10b1078c70adcdeb2d287329932411..f5aba951b99190718b1db4cde70941ed937abe45 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -23,7 +23,8 @@ SearchBox::SearchBox(content::RenderView* render_view)
last_results_base_(0),
is_key_capture_enabled_(false),
display_instant_results_(false),
- omnibox_font_size_(0) {
+ omnibox_font_size_(0),
+ last_restricted_id_(0) {
}
SearchBox::~SearchBox() {
@@ -42,6 +43,10 @@ void SearchBox::SetSuggestions(
render_view()->GetRoutingID(), render_view()->GetPageId(), suggestions));
}
+void SearchBox::ClearQuery() {
+ query_.clear();
+}
+
void SearchBox::ShowInstantOverlay(InstantShownReason reason,
int height,
InstantSizeUnits units) {
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698