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

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

Issue 12895007: Send onsubmit query down to the instant extended overlay page when a navigation is performed from t… (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/browser/ui/search/instant_controller.cc ('k') | no next file » | 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 348e894c10f0eb085743fb247910e5f3bdc04957..e008a1df9fc094178208f79ba128f027be21f3b7 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -194,7 +194,10 @@ void SearchBox::OnChange(const string16& query,
}
void SearchBox::OnSubmit(const string16& query) {
- query_ = query;
+ if (!query.empty()) {
+ query_ = query;
+ }
+
verbatim_ = true;
selection_start_ = selection_end_ = query_.size();
sreeram 2013/04/01 20:08:46 Put all these other things also into the 'if' bloc
robertshield 2013/04/08 16:02:47 Done.
if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) {
« no previous file with comments | « chrome/browser/ui/search/instant_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698