Index: components/ntp_snippets/ntp_snippets_status_service_unittest.cc |
diff --git a/components/ntp_snippets/ntp_snippets_status_service_unittest.cc b/components/ntp_snippets/ntp_snippets_status_service_unittest.cc |
index 6fce53e49bd6de4dbc31200c55bb3e5e7383f672..10e4ba1f97c659e0a3ae0743ec6b21d61e135a07 100644 |
--- a/components/ntp_snippets/ntp_snippets_status_service_unittest.cc |
+++ b/components/ntp_snippets/ntp_snippets_status_service_unittest.cc |
@@ -76,8 +76,8 @@ TEST_F(NTPSnippetsStatusServiceTest, DisabledViaPref) { |
// The default test setup is signed out. |
ASSERT_EQ(DisabledReason::SIGNED_OUT, service()->GetDisabledReasonFromDeps()); |
- // Once the disabled pref is set, we should be disabled. |
- pref_service()->SetBoolean(prefs::kDisableSnippets, true); |
+ // Once the enabled pref is set to false, we should be disabled. |
+ pref_service()->SetBoolean(prefs::kEnableSnippets, false); |
EXPECT_EQ(DisabledReason::EXPLICITLY_DISABLED, |
service()->GetDisabledReasonFromDeps()); |