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

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

Issue 1224083010: Enable Answers in Suggest always. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comment Created 5 years, 5 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_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 1ccd09aac8b7e23c873fb9355b105ac549cc0acc..ac238a0142ac62a2779addfe116c88fc3b349c7f 100644
--- a/chrome/browser/search_engines/ui_thread_search_terms_data.cc
+++ b/chrome/browser/search_engines/ui_thread_search_terms_data.cc
@@ -118,17 +118,10 @@ std::string UIThreadSearchTermsData::GetSuggestRequestIdentifier() const {
DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) ||
BrowserThread::CurrentlyOn(BrowserThread::UI));
#if defined(OS_ANDROID)
- if (ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE) {
- return OmniboxFieldTrial::EnableAnswersInSuggest() ?
- "chrome-mobile-ext-ansg" : "chrome-mobile-ext";
- }
+ if (ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE)
+ return "chrome-mobile-ext-ansg";
#endif
- return OmniboxFieldTrial::EnableAnswersInSuggest() ?
- "chrome-ext-ansg" : "chrome-ext";
-}
-
-bool UIThreadSearchTermsData::EnableAnswersInSuggest() const {
- return OmniboxFieldTrial::EnableAnswersInSuggest();
+ return "chrome-ext-ansg";
}
bool UIThreadSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
« no previous file with comments | « chrome/browser/search_engines/ui_thread_search_terms_data.h ('k') | components/omnibox/browser/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698