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

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

Issue 282183002: [AiS] Enable AiS flag on all platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/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 60ff33f5844e1ce5a4d5c80280e3c64fe2f2f4b6..62834541dde58bf8c61f6eba03f091c20f778783 100644
--- a/chrome/browser/search_engines/search_terms_data.cc
+++ b/chrome/browser/search_engines/search_terms_data.cc
@@ -16,7 +16,6 @@
#include "chrome/browser/sync/glue/device_info.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_thread.h"
#include "sync/protocol/sync.pb.h"
@@ -166,8 +165,7 @@ std::string UIThreadSearchTermsData::GetSuggestRequestIdentifier() const {
sync_pb::SyncEnums::DeviceType device_type =
browser_sync::DeviceInfo::GetLocalDeviceType();
if (device_type == sync_pb::SyncEnums_DeviceType_TYPE_PHONE) {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableAnswersInSuggest)) {
+ if (chrome::IsAnswersInSuggestEnabled()) {
return "chrome-mobile-ext-ansg";
} else {
return "chrome-mobile-ext";

Powered by Google App Engine
This is Rietveld 408576698