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

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

Issue 6475011: Implemented policy to disable plugin finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finished the policy implementation. Created 9 years, 10 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, 220 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort,
221 prefs::kEnableAuthNegotiatePort }, 221 prefs::kEnableAuthNegotiatePort },
222 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, 222 { Value::TYPE_STRING, kPolicyAuthServerWhitelist,
223 prefs::kAuthServerWhitelist }, 223 prefs::kAuthServerWhitelist },
224 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, 224 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist,
225 prefs::kAuthNegotiateDelegateWhitelist }, 225 prefs::kAuthNegotiateDelegateWhitelist },
226 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, 226 { Value::TYPE_STRING, kPolicyGSSAPILibraryName,
227 prefs::kGSSAPILibraryName }, 227 prefs::kGSSAPILibraryName },
228 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, 228 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs,
229 prefs::kDisable3DAPIs }, 229 prefs::kDisable3DAPIs },
230 { Value::TYPE_BOOLEAN, kPolicyDisablePluginFinder,
231 prefs::kDisablePluginFinder },
230 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate, 232 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate,
231 prefs::kPolicyRefreshRate }, 233 prefs::kPolicyRefreshRate },
232 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled }, 234 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled },
233 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled, 235 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled,
234 prefs::kDefaultBrowserSettingEnabled }, 236 prefs::kDefaultBrowserSettingEnabled },
235 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled, 237 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled,
236 prefs::kCloudPrintProxyEnabled }, 238 prefs::kCloudPrintProxyEnabled },
237 { Value::TYPE_STRING, kPolicyDownloadDirectory, 239 { Value::TYPE_STRING, kPolicyDownloadDirectory,
238 prefs::kDownloadDefaultDirectory }, 240 prefs::kDownloadDefaultDirectory },
239 241
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, 860 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN,
859 key::kEnableAuthNegotiatePort }, 861 key::kEnableAuthNegotiatePort },
860 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, 862 { kPolicyAuthServerWhitelist, Value::TYPE_STRING,
861 key::kAuthServerWhitelist }, 863 key::kAuthServerWhitelist },
862 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, 864 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING,
863 key::kAuthNegotiateDelegateWhitelist }, 865 key::kAuthNegotiateDelegateWhitelist },
864 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, 866 { kPolicyGSSAPILibraryName, Value::TYPE_STRING,
865 key::kGSSAPILibraryName }, 867 key::kGSSAPILibraryName },
866 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, 868 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN,
867 key::kDisable3DAPIs }, 869 key::kDisable3DAPIs },
870 { kPolicyDisablePluginFinder, Value::TYPE_BOOLEAN,
871 key::kDisablePluginFinder },
868 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER, 872 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER,
869 key::kPolicyRefreshRate }, 873 key::kPolicyRefreshRate },
870 { kPolicyInstantEnabled, Value::TYPE_BOOLEAN, key::kInstantEnabled }, 874 { kPolicyInstantEnabled, Value::TYPE_BOOLEAN, key::kInstantEnabled },
871 { kPolicyDefaultBrowserSettingEnabled, Value::TYPE_BOOLEAN, 875 { kPolicyDefaultBrowserSettingEnabled, Value::TYPE_BOOLEAN,
872 key::kDefaultBrowserSettingEnabled }, 876 key::kDefaultBrowserSettingEnabled },
873 { kPolicyCloudPrintProxyEnabled, Value::TYPE_BOOLEAN, 877 { kPolicyCloudPrintProxyEnabled, Value::TYPE_BOOLEAN,
874 key::kCloudPrintProxyEnabled }, 878 key::kCloudPrintProxyEnabled },
875 { kPolicyDownloadDirectory, Value::TYPE_STRING, 879 { kPolicyDownloadDirectory, Value::TYPE_STRING,
876 key::kDownloadDirectory }, 880 key::kDownloadDirectory },
877 881
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 // Update the initialization flag. 914 // Update the initialization flag.
911 if (!initialization_complete_ && 915 if (!initialization_complete_ &&
912 provider_->IsInitializationComplete()) { 916 provider_->IsInitializationComplete()) {
913 initialization_complete_ = true; 917 initialization_complete_ = true;
914 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 918 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
915 OnInitializationCompleted()); 919 OnInitializationCompleted());
916 } 920 }
917 } 921 }
918 922
919 } // namespace policy 923 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698