Commit 2daab5f9 authored by beaudoin's avatar beaudoin Committed by Commit bot

Enable SuggestionsService by default.

BUG=387105

Review URL: https://codereview.chromium.org/1024553003

Cr-Commit-Position: refs/heads/master@{#321474}
parent 7547b20c
...@@ -28,9 +28,6 @@ namespace suggestions { ...@@ -28,9 +28,6 @@ namespace suggestions {
// static // static
SuggestionsService* SuggestionsServiceFactory::GetForProfile(Profile* profile) { SuggestionsService* SuggestionsServiceFactory::GetForProfile(Profile* profile) {
if (!SuggestionsService::IsEnabled())
return NULL;
return static_cast<SuggestionsService*>( return static_cast<SuggestionsService*>(
GetInstance()->GetServiceForBrowserContext(profile, true)); GetInstance()->GetServiceForBrowserContext(profile, true));
} }
......
...@@ -118,12 +118,6 @@ SuggestionsService::SuggestionsService( ...@@ -118,12 +118,6 @@ SuggestionsService::SuggestionsService(
SuggestionsService::~SuggestionsService() {} SuggestionsService::~SuggestionsService() {}
// static
bool SuggestionsService::IsEnabled() {
return GetExperimentParam(kSuggestionsFieldTrialStateParam) ==
kSuggestionsFieldTrialStateEnabled;
}
// static // static
bool SuggestionsService::IsControlGroup() { bool SuggestionsService::IsControlGroup() {
return GetExperimentParam(kSuggestionsFieldTrialControlParam) == return GetExperimentParam(kSuggestionsFieldTrialControlParam) ==
......
...@@ -61,9 +61,6 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate { ...@@ -61,9 +61,6 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
scoped_ptr<BlacklistStore> blacklist_store); scoped_ptr<BlacklistStore> blacklist_store);
~SuggestionsService() override; ~SuggestionsService() override;
// Whether this service is enabled.
static bool IsEnabled();
// Whether the user is part of a control group. // Whether the user is part of a control group.
static bool IsControlGroup(); static bool IsControlGroup();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment