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

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

Issue 6955010: Remove the Remoting Host component from Chrome. (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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, 251 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins,
252 prefs::kPluginsAllowOutdated }, 252 prefs::kPluginsAllowOutdated },
253 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, 253 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins,
254 prefs::kPluginsAlwaysAuthorize }, 254 prefs::kPluginsAlwaysAuthorize },
255 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, 255 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled,
256 prefs::kEditBookmarksEnabled }, 256 prefs::kEditBookmarksEnabled },
257 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, 257 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs,
258 prefs::kAllowFileSelectionDialogs }, 258 prefs::kAllowFileSelectionDialogs },
259 { Value::TYPE_BOOLEAN, kPolicyChromotingEnabled, 259 { Value::TYPE_BOOLEAN, kPolicyChromotingEnabled,
260 prefs::kChromotingEnabled }, 260 prefs::kChromotingEnabled },
261 { Value::TYPE_BOOLEAN, kPolicyChromotingHostEnabled,
262 prefs::kChromotingHostEnabled },
263 { Value::TYPE_BOOLEAN, kPolicyChromotingHostFirewallTraversal,
264 prefs::kChromotingHostFirewallTraversal },
265 261
266 #if defined(OS_CHROMEOS) 262 #if defined(OS_CHROMEOS)
267 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, 263 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend,
268 prefs::kEnableScreenLock }, 264 prefs::kEnableScreenLock },
269 #endif 265 #endif
270 }; 266 };
271 267
272 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry 268 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry
273 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { 269 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = {
274 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, 270 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled,
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, 967 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN,
972 key::kAlwaysAuthorizePlugins }, 968 key::kAlwaysAuthorizePlugins },
973 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, 969 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN,
974 key::kBookmarkBarEnabled }, 970 key::kBookmarkBarEnabled },
975 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, 971 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN,
976 key::kEditBookmarksEnabled }, 972 key::kEditBookmarksEnabled },
977 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, 973 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN,
978 key::kAllowFileSelectionDialogs }, 974 key::kAllowFileSelectionDialogs },
979 { kPolicyChromotingEnabled, Value::TYPE_BOOLEAN, 975 { kPolicyChromotingEnabled, Value::TYPE_BOOLEAN,
980 key::kChromotingEnabled }, 976 key::kChromotingEnabled },
981 { kPolicyChromotingHostEnabled, Value::TYPE_BOOLEAN,
982 key::kChromotingHostEnabled },
983 { kPolicyChromotingHostFirewallTraversal, Value::TYPE_BOOLEAN,
984 key::kChromotingHostFirewallTraversal },
985 977
986 #if defined(OS_CHROMEOS) 978 #if defined(OS_CHROMEOS)
987 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, 979 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN,
988 key::kChromeOsLockOnIdleSuspend }, 980 key::kChromeOsLockOnIdleSuspend },
989 #endif 981 #endif
990 }; 982 };
991 983
992 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { 984 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = {
993 entries, 985 entries,
994 entries + arraysize(entries), 986 entries + arraysize(entries),
(...skipping 23 matching lines...) Expand all
1018 // Update the initialization flag. 1010 // Update the initialization flag.
1019 if (!initialization_complete_ && 1011 if (!initialization_complete_ &&
1020 provider_->IsInitializationComplete()) { 1012 provider_->IsInitializationComplete()) {
1021 initialization_complete_ = true; 1013 initialization_complete_ = true;
1022 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1014 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1023 OnInitializationCompleted()); 1015 OnInitializationCompleted());
1024 } 1016 }
1025 } 1017 }
1026 1018
1027 } // namespace policy 1019 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698