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

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

Issue 1543203002: Remove a variety of no-longer-used query params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_engines/ui_thread_search_terms_data.cc
diff --git a/chrome/browser/search_engines/ui_thread_search_terms_data.cc b/chrome/browser/search_engines/ui_thread_search_terms_data.cc
index 7fc76fe699429ce95552b2e8780b61e5977c33ce..c44fece25a95e1c4cdf926ddb72a0defa8c58a57 100644
--- a/chrome/browser/search_engines/ui_thread_search_terms_data.cc
+++ b/chrome/browser/search_engines/ui_thread_search_terms_data.cc
@@ -15,8 +15,6 @@
#include "chrome/browser/search/instant_service.h"
#include "chrome/browser/search/instant_service_factory.h"
#include "chrome/browser/search/search.h"
-#include "chrome/browser/themes/theme_service.h"
-#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
@@ -126,11 +124,6 @@ std::string UIThreadSearchTermsData::GetSuggestRequestIdentifier() const {
return "chrome-ext-ansg";
}
-bool UIThreadSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
samarth 2015/12/28 20:12:21 Unless this is directly related to the query param
Peter Kasting 2016/01/04 21:47:11 It's directly related; the only caller of it is th
- return search::IsInstantExtendedAPIEnabled() &&
- search::IsQueryExtractionEnabled();
-}
-
std::string UIThreadSearchTermsData::InstantExtendedEnabledParam(
bool for_search) const {
return search::InstantExtendedEnabledParam(for_search);
@@ -141,33 +134,6 @@ std::string UIThreadSearchTermsData::ForceInstantResultsParam(
return search::ForceInstantResultsParam(for_prerender);
}
-int UIThreadSearchTermsData::OmniboxStartMargin() const {
- InstantService* instant_service =
- InstantServiceFactory::GetForProfile(profile_);
- // Android and iOS have no InstantService.
- return instant_service ? instant_service->omnibox_start_margin()
- : search::kDisableStartMargin;
-}
-
-std::string UIThreadSearchTermsData::NTPIsThemedParam() const {
- DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) ||
- BrowserThread::CurrentlyOn(BrowserThread::UI));
-#if defined(ENABLE_THEMES)
- if (!search::IsInstantExtendedAPIEnabled())
- return std::string();
-
- // TODO(dhollowa): Determine fraction of custom themes that don't affect the
- // NTP background and/or color.
- ThemeService* theme_service = ThemeServiceFactory::GetForProfile(profile_);
- // NTP is considered themed if the theme is not default and not native (GTK+).
- if (theme_service && !theme_service->UsingDefaultTheme() &&
- !theme_service->UsingSystemTheme())
- return "es_th=1&";
-#endif // defined(ENABLE_THEMES)
-
- return std::string();
-}
-
// It's acutally OK to call this method on any thread, but it's currently placed
// in UIThreadSearchTermsData since SearchTermsData cannot depend on src/chrome
// as it is shared with iOS.

Powered by Google App Engine
This is Rietveld 408576698