| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |