| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 TypeAndName(kPolicyPasswordManagerEnabled, | 199 TypeAndName(kPolicyPasswordManagerEnabled, |
| 200 prefs::kPasswordManagerEnabled), | 200 prefs::kPasswordManagerEnabled), |
| 201 TypeAndName(kPolicyPasswordManagerAllowShowPasswords, | 201 TypeAndName(kPolicyPasswordManagerAllowShowPasswords, |
| 202 prefs::kPasswordManagerAllowShowPasswords), | 202 prefs::kPasswordManagerAllowShowPasswords), |
| 203 TypeAndName(kPolicyShowHomeButton, | 203 TypeAndName(kPolicyShowHomeButton, |
| 204 prefs::kShowHomeButton), | 204 prefs::kShowHomeButton), |
| 205 TypeAndName(kPolicyPrintingEnabled, | 205 TypeAndName(kPolicyPrintingEnabled, |
| 206 prefs::kPrintingEnabled), | 206 prefs::kPrintingEnabled), |
| 207 TypeAndName(kPolicyJavascriptEnabled, | 207 TypeAndName(kPolicyJavascriptEnabled, |
| 208 prefs::kWebKitJavascriptEnabled), | 208 prefs::kWebKitJavascriptEnabled), |
| 209 TypeAndName(kPolicyRemoteAccessClientFirewallTraversal, | |
| 210 prefs::kRemoteAccessClientFirewallTraversal), | |
| 211 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal, | 209 TypeAndName(kPolicyRemoteAccessHostFirewallTraversal, |
| 212 prefs::kRemoteAccessHostFirewallTraversal), | 210 prefs::kRemoteAccessHostFirewallTraversal), |
| 213 TypeAndName(kPolicyCloudPrintProxyEnabled, | 211 TypeAndName(kPolicyCloudPrintProxyEnabled, |
| 214 prefs::kCloudPrintProxyEnabled), | 212 prefs::kCloudPrintProxyEnabled), |
| 215 TypeAndName(kPolicySavingBrowserHistoryDisabled, | 213 TypeAndName(kPolicySavingBrowserHistoryDisabled, |
| 216 prefs::kSavingBrowserHistoryDisabled), | 214 prefs::kSavingBrowserHistoryDisabled), |
| 217 TypeAndName(kPolicySavingBrowserHistoryDisabled, | 215 TypeAndName(kPolicySavingBrowserHistoryDisabled, |
| 218 prefs::kSavingBrowserHistoryDisabled), | 216 prefs::kSavingBrowserHistoryDisabled), |
| 219 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, | 217 TypeAndName(kPolicyDisableAuthNegotiateCnameLookup, |
| 220 prefs::kDisableAuthNegotiateCnameLookup), | 218 prefs::kDisableAuthNegotiateCnameLookup), |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 | 973 |
| 976 provider_.SetInitializationComplete(true); | 974 provider_.SetInitializationComplete(true); |
| 977 EXPECT_FALSE(store_->IsInitializationComplete()); | 975 EXPECT_FALSE(store_->IsInitializationComplete()); |
| 978 | 976 |
| 979 store_->OnUpdatePolicy(); | 977 store_->OnUpdatePolicy(); |
| 980 Mock::VerifyAndClearExpectations(&observer_); | 978 Mock::VerifyAndClearExpectations(&observer_); |
| 981 EXPECT_TRUE(store_->IsInitializationComplete()); | 979 EXPECT_TRUE(store_->IsInitializationComplete()); |
| 982 } | 980 } |
| 983 | 981 |
| 984 } // namespace policy | 982 } // namespace policy |
| OLD | NEW |