| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
| 9 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 9 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 10 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 10 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal, | 208 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal, |
| 209 prefs::kRemoteAccessHostFirewallTraversal), | 209 prefs::kRemoteAccessHostFirewallTraversal), |
| 210 TypeAndName(kPolicyCloudPrintProxyEnabled, | 210 TypeAndName(kPolicyCloudPrintProxyEnabled, |
| 211 prefs::kCloudPrintProxyEnabled), | 211 prefs::kCloudPrintProxyEnabled), |
| 212 TypeAndName(kPolicyCloudPrintSubmitEnabled, | 212 TypeAndName(kPolicyCloudPrintSubmitEnabled, |
| 213 prefs::kCloudPrintSubmitEnabled), | 213 prefs::kCloudPrintSubmitEnabled), |
| 214 TypeAndName(kPolicySavingBrowserHistoryDisabled, | 214 TypeAndName(kPolicySavingBrowserHistoryDisabled, |
| 215 prefs::kSavingBrowserHistoryDisabled), | 215 prefs::kSavingBrowserHistoryDisabled), |
| 216 TypeAndName(kPolicySavingBrowserHistoryDisabled, | 216 TypeAndName(kPolicySavingBrowserHistoryDisabled, |
| 217 prefs::kSavingBrowserHistoryDisabled), | 217 prefs::kSavingBrowserHistoryDisabled), |
| 218 TypeAndName(kPolicyEnableOriginBoundCerts, |
| 219 prefs::kEnableOriginBoundCerts), |
| 218 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, | 220 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, |
| 219 prefs::kDisableAuthNegotiateCnameLookup), | 221 prefs::kDisableAuthNegotiateCnameLookup), |
| 220 TypeAndName(kPolicyEnableAuthNegotiatePort, | 222 TypeAndName(kPolicyEnableAuthNegotiatePort, |
| 221 prefs::kEnableAuthNegotiatePort), | 223 prefs::kEnableAuthNegotiatePort), |
| 222 TypeAndName(kPolicyInstantEnabled, | 224 TypeAndName(kPolicyInstantEnabled, |
| 223 prefs::kInstantEnabled), | 225 prefs::kInstantEnabled), |
| 224 TypeAndName(kPolicyDisablePluginFinder, | 226 TypeAndName(kPolicyDisablePluginFinder, |
| 225 prefs::kDisablePluginFinder), | 227 prefs::kDisablePluginFinder), |
| 226 TypeAndName(kPolicyClearSiteDataOnExit, | 228 TypeAndName(kPolicyClearSiteDataOnExit, |
| 227 prefs::kClearSiteDataOnExit), | 229 prefs::kClearSiteDataOnExit), |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 // DefaultJavaScriptSetting overrides JavascriptEnabled. | 1036 // DefaultJavaScriptSetting overrides JavascriptEnabled. |
| 1035 provider_.AddPolicy(kPolicyDefaultJavaScriptSetting, | 1037 provider_.AddPolicy(kPolicyDefaultJavaScriptSetting, |
| 1036 Value::CreateIntegerValue(CONTENT_SETTING_ALLOW)); | 1038 Value::CreateIntegerValue(CONTENT_SETTING_ALLOW)); |
| 1037 store_->OnUpdatePolicy(&provider_); | 1039 store_->OnUpdatePolicy(&provider_); |
| 1038 EXPECT_EQ(PrefStore::READ_OK, | 1040 EXPECT_EQ(PrefStore::READ_OK, |
| 1039 store_->GetValue(prefs::kManagedDefaultJavaScriptSetting, &value)); | 1041 store_->GetValue(prefs::kManagedDefaultJavaScriptSetting, &value)); |
| 1040 EXPECT_TRUE(base::FundamentalValue(CONTENT_SETTING_ALLOW).Equals(value)); | 1042 EXPECT_TRUE(base::FundamentalValue(CONTENT_SETTING_ALLOW).Equals(value)); |
| 1041 } | 1043 } |
| 1042 | 1044 |
| 1043 } // namespace policy | 1045 } // namespace policy |
| OLD | NEW |