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

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store_unittest.cc

Issue 10562036: Deprecate and re-wire the ClearSiteDataOnExit policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/policy/configuration_policy_handler.h" 9 #include "chrome/browser/policy/configuration_policy_handler.h"
10 #include "chrome/browser/policy/configuration_policy_pref_store.h" 10 #include "chrome/browser/policy/configuration_policy_pref_store.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 PolicyAndPref(key::kEnableOnlineRevocationChecks, 233 PolicyAndPref(key::kEnableOnlineRevocationChecks,
234 prefs::kCertRevocationCheckingEnabled), 234 prefs::kCertRevocationCheckingEnabled),
235 PolicyAndPref(key::kDisableAuthNegotiateCnameLookup, 235 PolicyAndPref(key::kDisableAuthNegotiateCnameLookup,
236 prefs::kDisableAuthNegotiateCnameLookup), 236 prefs::kDisableAuthNegotiateCnameLookup),
237 PolicyAndPref(key::kEnableAuthNegotiatePort, 237 PolicyAndPref(key::kEnableAuthNegotiatePort,
238 prefs::kEnableAuthNegotiatePort), 238 prefs::kEnableAuthNegotiatePort),
239 PolicyAndPref(key::kInstantEnabled, 239 PolicyAndPref(key::kInstantEnabled,
240 prefs::kInstantEnabled), 240 prefs::kInstantEnabled),
241 PolicyAndPref(key::kDisablePluginFinder, 241 PolicyAndPref(key::kDisablePluginFinder,
242 prefs::kDisablePluginFinder), 242 prefs::kDisablePluginFinder),
243 PolicyAndPref(key::kClearSiteDataOnExit,
244 prefs::kClearSiteDataOnExit),
245 PolicyAndPref(key::kDefaultBrowserSettingEnabled, 243 PolicyAndPref(key::kDefaultBrowserSettingEnabled,
246 prefs::kDefaultBrowserSettingEnabled), 244 prefs::kDefaultBrowserSettingEnabled),
247 PolicyAndPref(key::kDisable3DAPIs, 245 PolicyAndPref(key::kDisable3DAPIs,
248 prefs::kDisable3DAPIs), 246 prefs::kDisable3DAPIs),
249 PolicyAndPref(key::kTranslateEnabled, 247 PolicyAndPref(key::kTranslateEnabled,
250 prefs::kEnableTranslate), 248 prefs::kEnableTranslate),
251 PolicyAndPref(key::kAllowOutdatedPlugins, 249 PolicyAndPref(key::kAllowOutdatedPlugins,
252 prefs::kPluginsAllowOutdated), 250 prefs::kPluginsAllowOutdated),
253 PolicyAndPref(key::kAlwaysAuthorizePlugins, 251 PolicyAndPref(key::kAlwaysAuthorizePlugins,
254 prefs::kPluginsAlwaysAuthorize), 252 prefs::kPluginsAlwaysAuthorize),
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 policy.Set(key::kDefaultJavaScriptSetting, POLICY_LEVEL_MANDATORY, 1065 policy.Set(key::kDefaultJavaScriptSetting, POLICY_LEVEL_MANDATORY,
1068 POLICY_SCOPE_USER, 1066 POLICY_SCOPE_USER,
1069 base::Value::CreateIntegerValue(CONTENT_SETTING_ALLOW)); 1067 base::Value::CreateIntegerValue(CONTENT_SETTING_ALLOW));
1070 provider_.UpdateChromePolicy(policy); 1068 provider_.UpdateChromePolicy(policy);
1071 EXPECT_EQ(PrefStore::READ_OK, 1069 EXPECT_EQ(PrefStore::READ_OK,
1072 store_->GetValue(prefs::kManagedDefaultJavaScriptSetting, &value)); 1070 store_->GetValue(prefs::kManagedDefaultJavaScriptSetting, &value));
1073 EXPECT_TRUE(base::FundamentalValue(CONTENT_SETTING_ALLOW).Equals(value)); 1071 EXPECT_TRUE(base::FundamentalValue(CONTENT_SETTING_ALLOW).Equals(value));
1074 } 1072 }
1075 1073
1076 } // namespace policy 1074 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698