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

Unified Diff: components/search/search.cc

Issue 2520993004: Cleanup: Remove for_search param from search::InstantExtendedEnabledParam() (Closed)
Patch Set: fix Created 4 years, 1 month 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: components/search/search.cc
diff --git a/components/search/search.cc b/components/search/search.cc
index 97cdacb9856e289ec53621c7db0b4be12fe671ba..fd678891129a6bb13009b0599306ae5f2a08bfa4 100644
--- a/components/search/search.cc
+++ b/components/search/search.cc
@@ -158,10 +158,7 @@ bool GetBoolValueForFlagWithDefault(const std::string& flag,
return !!GetUInt64ValueForFlagWithDefault(flag, default_value ? 1 : 0, flags);
}
-std::string InstantExtendedEnabledParam(bool for_search) {
- // TODO(treib): Remove |for_search| and update callers that set it to true.
- if (for_search)
- return std::string();
+std::string InstantExtendedEnabledParam() {
return std::string(google_util::kInstantExtendedAPIParam) + "=" +
base::Uint64ToString(EmbeddedSearchPageVersion()) + "&";
}

Powered by Google App Engine
This is Rietveld 408576698