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

Unified Diff: chrome/browser/ui/android/toolbar/toolbar_model_android.cc

Issue 151813002: Adds InstantExtendedEnabledParam to the search request URL iff the query extraction flag is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 6 years, 11 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/search_engines/template_url.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/toolbar/toolbar_model_android.cc
diff --git a/chrome/browser/ui/android/toolbar/toolbar_model_android.cc b/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
index 46413cb413f4c4cd491d735027cf8c5483d11d9e..733185dc0a7b6932ae43f0977b02dab296d89867 100644
--- a/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
+++ b/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
@@ -6,6 +6,7 @@
#include "base/android/jni_string.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search/search.h"
#include "chrome/browser/search_engines/search_terms_data.h"
#include "chrome/browser/ui/toolbar/toolbar_model_impl.h"
#include "content/public/browser/web_contents.h"
@@ -42,7 +43,7 @@ ScopedJavaLocalRef<jstring> ToolbarModelAndroid::GetQueryExtractionParam(
UIThreadSearchTermsData search_terms_data(profile);
return base::android::ConvertUTF8ToJavaString(
env,
- search_terms_data.InstantExtendedEnabledParam());
+ chrome::InstantExtendedEnabledParam(false /* for_search (ignored) */);
Peter Kasting 2014/02/04 00:34:53 Nit: Omit comment -- since there's only one arg it
kmadhusu 2014/02/04 00:44:32 Done.
}
ScopedJavaLocalRef<jstring> ToolbarModelAndroid::GetCorpusChipText(
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698