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

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: Created 9 years, 7 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, 239 { Value::TYPE_STRING, kPolicyAuthServerWhitelist,
240 prefs::kAuthServerWhitelist }, 240 prefs::kAuthServerWhitelist },
241 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, 241 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist,
242 prefs::kAuthNegotiateDelegateWhitelist }, 242 prefs::kAuthNegotiateDelegateWhitelist },
243 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, 243 { Value::TYPE_STRING, kPolicyGSSAPILibraryName,
244 prefs::kGSSAPILibraryName }, 244 prefs::kGSSAPILibraryName },
245 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, 245 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs,
246 prefs::kDisable3DAPIs }, 246 prefs::kDisable3DAPIs },
247 { Value::TYPE_BOOLEAN, kPolicyDisablePluginFinder, 247 { Value::TYPE_BOOLEAN, kPolicyDisablePluginFinder,
248 prefs::kDisablePluginFinder }, 248 prefs::kDisablePluginFinder },
249 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate, 249 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate,
Mattias Nissler (ping if slow) 2011/05/13 09:45:03 We'll run into a problem here if we use the same p
sfeuz 2011/05/17 14:27:42 Added a policy for the DevicePolicyRefreshRate.
Mattias Nissler (ping if slow) 2011/05/17 14:47:03 Ah, but then there is the problem that the autogen
250 prefs::kPolicyRefreshRate }, 250 prefs::kDevicePolicyRefreshRate },
251 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate,
252 prefs::kUserPolicyRefreshRate },
251 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled }, 253 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled },
252 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled, 254 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled,
253 prefs::kDefaultBrowserSettingEnabled }, 255 prefs::kDefaultBrowserSettingEnabled },
254 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled, 256 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled,
255 prefs::kCloudPrintProxyEnabled }, 257 prefs::kCloudPrintProxyEnabled },
256 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, 258 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate },
257 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, 259 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar },
258 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, 260 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins,
259 prefs::kPluginsAllowOutdated }, 261 prefs::kPluginsAllowOutdated },
260 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, 262 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins,
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 // Update the initialization flag. 1039 // Update the initialization flag.
1038 if (!initialization_complete_ && 1040 if (!initialization_complete_ &&
1039 provider_->IsInitializationComplete()) { 1041 provider_->IsInitializationComplete()) {
1040 initialization_complete_ = true; 1042 initialization_complete_ = true;
1041 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1043 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1042 OnInitializationCompleted(true)); 1044 OnInitializationCompleted(true));
1043 } 1045 }
1044 } 1046 }
1045 1047
1046 } // namespace policy 1048 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698