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

Unified Diff: chrome/browser/search/search.cc

Issue 164493005: Move SearchTermsData::ForceInstantResultsParam() to chrome::ForceInstantResultsParam(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 09a841a495efa0fa0cbb55440e8fe1653b15d063..82ed7ad7bff8e9891ae824e81cf56c650349bf13 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -371,6 +371,11 @@ std::string InstantExtendedEnabledParam(bool for_search) {
base::Uint64ToString(EmbeddedSearchPageVersion()) + "&";
}
+std::string ForceInstantResultsParam(bool for_prerender) {
+ return (for_prerender || !IsInstantExtendedAPIEnabled()) ? "ion=1&" :
Peter Kasting 2014/02/14 05:30:00 Nit: Break after '?' instead
kmadhusu 2014/02/14 18:24:04 Done.
+ std::string();
+}
+
bool IsQueryExtractionEnabled() {
#if defined(OS_IOS) || defined(OS_ANDROID)
return true;

Powered by Google App Engine
This is Rietveld 408576698