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

Unified Diff: chrome/browser/search_engines/search_terms_data.cc

Issue 12319124: Enable query extraction for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/google/google_util.h ('k') | chrome/browser/ui/search/search.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/search_terms_data.cc
diff --git a/chrome/browser/search_engines/search_terms_data.cc b/chrome/browser/search_engines/search_terms_data.cc
index a1adfc9f4c8ae633b65957e100c7a54fb1dd74a4..1b15d35b1d80738222991286aed395ea6ff9cd03 100644
--- a/chrome/browser/search_engines/search_terms_data.cc
+++ b/chrome/browser/search_engines/search_terms_data.cc
@@ -141,6 +141,12 @@ std::string UIThreadSearchTermsData::InstantEnabledParam() const {
}
std::string UIThreadSearchTermsData::InstantExtendedEnabledParam() const {
+#if defined(OS_IOS) || defined(OS_ANDROID)
Peter Kasting 2013/03/01 21:44:44 You're omitting the threading assertion and the pr
Yusuf 2013/03/01 22:26:07 Done.
+ if (chrome::search::IsQueryExtractionEnabled(profile_) &&
+ GURL(GoogleBaseURLValue()).SchemeIsSecure())
Peter Kasting 2013/03/01 21:44:44 Shouldn't we be checking scheme security elsewhere
Yusuf 2013/03/01 22:26:07 You are right. Apparently it is already checked in
rohitrao (ping after 24h) 2013/03/01 22:38:26 We have to be a little careful here, because we do
+ return std::string(google_util::kInstantExtendedAPIParam) + "=" +
+ std::string(google_util::kInstantExtendedDefaultAPIVersion) + "&";
Peter Kasting 2013/03/01 21:44:44 If you're already modifying UIThreadSearchTermsDat
Yusuf 2013/03/01 22:26:07 Done.
+#else
DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) ||
BrowserThread::CurrentlyOn(BrowserThread::UI));
if (profile_) {
@@ -151,6 +157,7 @@ std::string UIThreadSearchTermsData::InstantExtendedEnabledParam() const {
base::Uint64ToString(instant_extended_api_version) + "&";
}
}
+#endif
return std::string();
}
« no previous file with comments | « chrome/browser/google/google_util.h ('k') | chrome/browser/ui/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698