Index: components/ntp_snippets/ntp_snippets_status_service.cc |
diff --git a/components/ntp_snippets/ntp_snippets_status_service.cc b/components/ntp_snippets/ntp_snippets_status_service.cc |
index 6adcd350e42a7999e8e1dc1f2c4a390f1b0ce1c0..2aedae2d86abe755fdda5c6f0b47f711464ed71f 100644 |
--- a/components/ntp_snippets/ntp_snippets_status_service.cc |
+++ b/components/ntp_snippets/ntp_snippets_status_service.cc |
@@ -27,7 +27,7 @@ NTPSnippetsStatusService::~NTPSnippetsStatusService() {} |
// static |
void NTPSnippetsStatusService::RegisterProfilePrefs( |
PrefRegistrySimple* registry) { |
- registry->RegisterBooleanPref(prefs::kDisableSnippets, false); |
+ registry->RegisterBooleanPref(prefs::kEnableSnippets, true); |
} |
void NTPSnippetsStatusService::Init( |
@@ -45,7 +45,7 @@ void NTPSnippetsStatusService::Init( |
pref_change_registrar_.Init(pref_service_); |
pref_change_registrar_.Add( |
- prefs::kDisableSnippets, |
+ prefs::kEnableSnippets, |
base::Bind(&NTPSnippetsStatusService::OnStateChanged, |
base::Unretained(this))); |
} |
@@ -61,7 +61,7 @@ void NTPSnippetsStatusService::OnStateChanged() { |
} |
DisabledReason NTPSnippetsStatusService::GetDisabledReasonFromDeps() const { |
- if (pref_service_->GetBoolean(prefs::kDisableSnippets)) { |
+ if (!pref_service_->GetBoolean(prefs::kEnableSnippets)) { |
DVLOG(1) << "[GetNewDisabledReason] Disabled via pref"; |
return DisabledReason::EXPLICITLY_DISABLED; |
} |