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

Unified Diff: chrome/browser/supervised_user/supervised_user_pref_store_unittest.cc

Issue 697693004: Supervised users: if history recording is off, allow incognito and deleting history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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/supervised_user/supervised_user_pref_store_unittest.cc
diff --git a/chrome/browser/supervised_user/supervised_user_pref_store_unittest.cc b/chrome/browser/supervised_user/supervised_user_pref_store_unittest.cc
index 7e80748a54c464bc81c645c4daf7bf888c498754..490b2261e3e46ea05fe12e34fca48cb85248d043 100644
--- a/chrome/browser/supervised_user/supervised_user_pref_store_unittest.cc
+++ b/chrome/browser/supervised_user/supervised_user_pref_store_unittest.cc
@@ -127,7 +127,7 @@ TEST_F(SupervisedUserPrefStoreTest, ConfigureSettings) {
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
dict->SetBoolean("example.com", true);
dict->SetBoolean("moose.org", false);
- service_.SetLocalSettingForTesting(
+ service_.SetLocalSetting(
supervised_users::kContentPackManualBehaviorHosts,
scoped_ptr<base::Value>(dict->DeepCopy()));
EXPECT_EQ(1u, fixture.changed_prefs()->size());
@@ -138,7 +138,7 @@ TEST_F(SupervisedUserPrefStoreTest, ConfigureSettings) {
// kForceSafeSearch can be configured by the custodian, overriding the
// hardcoded default.
fixture.changed_prefs()->Clear();
- service_.SetLocalSettingForTesting(
+ service_.SetLocalSetting(
supervised_users::kForceSafeSearch,
scoped_ptr<base::Value>(new base::FundamentalValue(false)));
EXPECT_EQ(1u, fixture.changed_prefs()->size());

Powered by Google App Engine
This is Rietveld 408576698