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

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: Rebased on ToT. 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, 219 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort,
220 prefs::kEnableAuthNegotiatePort }, 220 prefs::kEnableAuthNegotiatePort },
221 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, 221 { Value::TYPE_STRING, kPolicyAuthServerWhitelist,
222 prefs::kAuthServerWhitelist }, 222 prefs::kAuthServerWhitelist },
223 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, 223 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist,
224 prefs::kAuthNegotiateDelegateWhitelist }, 224 prefs::kAuthNegotiateDelegateWhitelist },
225 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, 225 { Value::TYPE_STRING, kPolicyGSSAPILibraryName,
226 prefs::kGSSAPILibraryName }, 226 prefs::kGSSAPILibraryName },
227 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, 227 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs,
228 prefs::kDisable3DAPIs }, 228 prefs::kDisable3DAPIs },
229 { Value::TYPE_BOOLEAN, kPolicyDisablePluginFinder,
230 prefs::kDisablePluginFinder },
229 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate, 231 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate,
230 prefs::kPolicyUserPolicyRefreshRate }, 232 prefs::kPolicyUserPolicyRefreshRate },
231 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled }, 233 { Value::TYPE_BOOLEAN, kPolicyInstantEnabled, prefs::kInstantEnabled },
232 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled, 234 { Value::TYPE_BOOLEAN, kPolicyDefaultBrowserSettingEnabled,
233 prefs::kDefaultBrowserSettingEnabled }, 235 prefs::kDefaultBrowserSettingEnabled },
234 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled, 236 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled,
235 prefs::kCloudPrintProxyEnabled }, 237 prefs::kCloudPrintProxyEnabled },
236 { Value::TYPE_STRING, kPolicyDownloadDirectory, 238 { Value::TYPE_STRING, kPolicyDownloadDirectory,
237 prefs::kDownloadDefaultDirectory }, 239 prefs::kDownloadDefaultDirectory },
238 240
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, 877 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN,
876 key::kEnableAuthNegotiatePort }, 878 key::kEnableAuthNegotiatePort },
877 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, 879 { kPolicyAuthServerWhitelist, Value::TYPE_STRING,
878 key::kAuthServerWhitelist }, 880 key::kAuthServerWhitelist },
879 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, 881 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING,
880 key::kAuthNegotiateDelegateWhitelist }, 882 key::kAuthNegotiateDelegateWhitelist },
881 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, 883 { kPolicyGSSAPILibraryName, Value::TYPE_STRING,
882 key::kGSSAPILibraryName }, 884 key::kGSSAPILibraryName },
883 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, 885 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN,
884 key::kDisable3DAPIs }, 886 key::kDisable3DAPIs },
887 { kPolicyDisablePluginFinder, Value::TYPE_BOOLEAN,
Bernhard Bauer 2011/02/24 10:37:07 I'm not sure if we should call this policy "disabl
pastarmovj 2011/02/24 16:02:20 As we agreed offline - I will keep the name of thi
888 key::kDisablePluginFinder },
885 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER, 889 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER,
886 key::kPolicyRefreshRate }, 890 key::kPolicyRefreshRate },
887 { kPolicyInstantEnabled, Value::TYPE_BOOLEAN, key::kInstantEnabled }, 891 { kPolicyInstantEnabled, Value::TYPE_BOOLEAN, key::kInstantEnabled },
888 { kPolicyDefaultBrowserSettingEnabled, Value::TYPE_BOOLEAN, 892 { kPolicyDefaultBrowserSettingEnabled, Value::TYPE_BOOLEAN,
889 key::kDefaultBrowserSettingEnabled }, 893 key::kDefaultBrowserSettingEnabled },
890 { kPolicyCloudPrintProxyEnabled, Value::TYPE_BOOLEAN, 894 { kPolicyCloudPrintProxyEnabled, Value::TYPE_BOOLEAN,
891 key::kCloudPrintProxyEnabled }, 895 key::kCloudPrintProxyEnabled },
892 { kPolicyDownloadDirectory, Value::TYPE_STRING, 896 { kPolicyDownloadDirectory, Value::TYPE_STRING,
893 key::kDownloadDirectory }, 897 key::kDownloadDirectory },
894 898
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 // Update the initialization flag. 931 // Update the initialization flag.
928 if (!initialization_complete_ && 932 if (!initialization_complete_ &&
929 provider_->IsInitializationComplete()) { 933 provider_->IsInitializationComplete()) {
930 initialization_complete_ = true; 934 initialization_complete_ = true;
931 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 935 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
932 OnInitializationCompleted()); 936 OnInitializationCompleted());
933 } 937 }
934 } 938 }
935 939
936 } // namespace policy 940 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698