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

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

Issue 7014036: Split the policy refresh rate preference into user- and device-policy refresh rate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits. Created 9 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
OLDNEW
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 "chrome/browser/policy/configuration_policy_pref_store.h" 5 #include "chrome/browser/policy/configuration_policy_pref_store.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 prefs::kAuthNegotiateDelegateWhitelist }, 252 prefs::kAuthNegotiateDelegateWhitelist },
253 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, 253 { Value::TYPE_STRING, kPolicyGSSAPILibraryName,
254 prefs::kGSSAPILibraryName }, 254 prefs::kGSSAPILibraryName },
255 { Value::TYPE_BOOLEAN, kPolicyAllowCrossOriginAuthPrompt, 255 { Value::TYPE_BOOLEAN, kPolicyAllowCrossOriginAuthPrompt,
256 prefs::kAllowCrossOriginAuthPrompt }, 256 prefs::kAllowCrossOriginAuthPrompt },
257 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, 257 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs,
258 prefs::kDisable3DAPIs }, 258 prefs::kDisable3DAPIs },
259 { Value::TYPE_BOOLEAN, kPolicyDisablePluginFinder, 259 { Value::TYPE_BOOLEAN, kPolicyDisablePluginFinder,
260 prefs::kDisablePluginFinder }, 260 prefs::kDisablePluginFinder },
261 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate, 261 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate,
262 prefs::kPolicyRefreshRate }, 262 prefs::kUserPolicyRefreshRate },
263 { Value::TYPE_INTEGER, kPolicyDevicePolicyRefreshRate,
264 prefs::kDevicePolicyRefreshRate },
263 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled }, 265 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled },
264 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled, 266 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled,
265 prefs::kDefaultBrowserSettingEnabled }, 267 prefs::kDefaultBrowserSettingEnabled },
266 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled, 268 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled,
267 prefs::kCloudPrintProxyEnabled }, 269 prefs::kCloudPrintProxyEnabled },
268 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, 270 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate },
269 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, 271 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar },
270 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, 272 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins,
271 prefs::kPluginsAllowOutdated }, 273 prefs::kPluginsAllowOutdated },
272 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, 274 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins,
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, 1064 { kPolicyGSSAPILibraryName, Value::TYPE_STRING,
1063 key::kGSSAPILibraryName }, 1065 key::kGSSAPILibraryName },
1064 { kPolicyAllowCrossOriginAuthPrompt, Value::TYPE_BOOLEAN, 1066 { kPolicyAllowCrossOriginAuthPrompt, Value::TYPE_BOOLEAN,
1065 key::kAllowCrossOriginAuthPrompt }, 1067 key::kAllowCrossOriginAuthPrompt },
1066 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, 1068 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN,
1067 key::kDisable3DAPIs }, 1069 key::kDisable3DAPIs },
1068 { kPolicyDisablePluginFinder, Value::TYPE_BOOLEAN, 1070 { kPolicyDisablePluginFinder, Value::TYPE_BOOLEAN,
1069 key::kDisablePluginFinder }, 1071 key::kDisablePluginFinder },
1070 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER, 1072 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER,
1071 key::kPolicyRefreshRate }, 1073 key::kPolicyRefreshRate },
1074 { kPolicyDevicePolicyRefreshRate, Value::TYPE_INTEGER,
1075 key::kDevicePolicyRefreshRate },
1072 { kPolicyInstantEnabled, Value::TYPE_BOOLEAN, key::kInstantEnabled }, 1076 { kPolicyInstantEnabled, Value::TYPE_BOOLEAN, key::kInstantEnabled },
1073 { kPolicyDefaultBrowserSettingEnabled, Value::TYPE_BOOLEAN, 1077 { kPolicyDefaultBrowserSettingEnabled, Value::TYPE_BOOLEAN,
1074 key::kDefaultBrowserSettingEnabled }, 1078 key::kDefaultBrowserSettingEnabled },
1075 { kPolicyCloudPrintProxyEnabled, Value::TYPE_BOOLEAN, 1079 { kPolicyCloudPrintProxyEnabled, Value::TYPE_BOOLEAN,
1076 key::kCloudPrintProxyEnabled }, 1080 key::kCloudPrintProxyEnabled },
1077 { kPolicyDownloadDirectory, Value::TYPE_STRING, 1081 { kPolicyDownloadDirectory, Value::TYPE_STRING,
1078 key::kDownloadDirectory }, 1082 key::kDownloadDirectory },
1079 { kPolicyTranslateEnabled, Value::TYPE_BOOLEAN, key::kTranslateEnabled }, 1083 { kPolicyTranslateEnabled, Value::TYPE_BOOLEAN, key::kTranslateEnabled },
1080 { kPolicyAllowOutdatedPlugins, Value::TYPE_BOOLEAN, 1084 { kPolicyAllowOutdatedPlugins, Value::TYPE_BOOLEAN,
1081 key::kAllowOutdatedPlugins }, 1085 key::kAllowOutdatedPlugins },
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 // Update the initialization flag. 1143 // Update the initialization flag.
1140 if (!initialization_complete_ && 1144 if (!initialization_complete_ &&
1141 provider_->IsInitializationComplete()) { 1145 provider_->IsInitializationComplete()) {
1142 initialization_complete_ = true; 1146 initialization_complete_ = true;
1143 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1147 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1144 OnInitializationCompleted(true)); 1148 OnInitializationCompleted(true));
1145 } 1149 }
1146 } 1150 }
1147 1151
1148 } // namespace policy 1152 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698