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

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

Issue 7390027: Added group policies to enable/disable importing of data from other browsers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed remaining nits Created 9 years, 4 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, 267 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate },
268 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, 268 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar },
269 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, 269 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins,
270 prefs::kPluginsAllowOutdated }, 270 prefs::kPluginsAllowOutdated },
271 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, 271 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins,
272 prefs::kPluginsAlwaysAuthorize }, 272 prefs::kPluginsAlwaysAuthorize },
273 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, 273 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled,
274 prefs::kEditBookmarksEnabled }, 274 prefs::kEditBookmarksEnabled },
275 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, 275 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs,
276 prefs::kAllowFileSelectionDialogs }, 276 prefs::kAllowFileSelectionDialogs },
277 { Value::TYPE_BOOLEAN, kPolicyImportBookmarks,
278 prefs::kImportBookmarks},
279 { Value::TYPE_BOOLEAN, kPolicyImportHistory,
280 prefs::kImportHistory},
281 { Value::TYPE_BOOLEAN, kPolicyImportHomepage,
282 prefs::kImportHomepage},
283 { Value::TYPE_BOOLEAN, kPolicyImportSearchEngine,
284 prefs::kImportSearchEngine },
285 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords,
286 prefs::kImportSavedPasswords },
277 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, 287 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy,
278 prefs::kMaxConnectionsPerProxy }, 288 prefs::kMaxConnectionsPerProxy },
279 289
280 #if defined(OS_CHROMEOS) 290 #if defined(OS_CHROMEOS)
281 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, 291 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend,
282 prefs::kEnableScreenLock }, 292 prefs::kEnableScreenLock },
283 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, 293 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel,
284 prefs::kChromeOsReleaseChannel }, 294 prefs::kChromeOsReleaseChannel },
285 #endif 295 #endif
286 }; 296 };
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, 1081 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN,
1072 key::kAlwaysAuthorizePlugins }, 1082 key::kAlwaysAuthorizePlugins },
1073 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, 1083 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN,
1074 key::kBookmarkBarEnabled }, 1084 key::kBookmarkBarEnabled },
1075 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, 1085 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN,
1076 key::kEditBookmarksEnabled }, 1086 key::kEditBookmarksEnabled },
1077 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, 1087 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN,
1078 key::kAllowFileSelectionDialogs }, 1088 key::kAllowFileSelectionDialogs },
1079 { kPolicyDiskCacheDir, Value::TYPE_STRING, 1089 { kPolicyDiskCacheDir, Value::TYPE_STRING,
1080 key::kDiskCacheDir }, 1090 key::kDiskCacheDir },
1091 { kPolicyImportBookmarks, Value::TYPE_BOOLEAN,
1092 key::kImportBookmarks },
1093 { kPolicyImportHistory, Value::TYPE_BOOLEAN,
1094 key::kImportHistory },
1095 { kPolicyImportHomepage, Value::TYPE_BOOLEAN,
1096 key::kImportHomepage },
1097 { kPolicyImportSearchEngine, Value::TYPE_BOOLEAN,
1098 key::kImportSearchEngine },
1099 { kPolicyImportSavedPasswords, Value::TYPE_BOOLEAN,
1100 key::kImportSavedPasswords },
1081 { kPolicyMaxConnectionsPerProxy, Value::TYPE_INTEGER, 1101 { kPolicyMaxConnectionsPerProxy, Value::TYPE_INTEGER,
1082 key::kMaxConnectionsPerProxy }, 1102 key::kMaxConnectionsPerProxy },
1083 1103
1084 #if defined(OS_CHROMEOS) 1104 #if defined(OS_CHROMEOS)
1085 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, 1105 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN,
1086 key::kChromeOsLockOnIdleSuspend }, 1106 key::kChromeOsLockOnIdleSuspend },
1087 { kPolicyChromeOsReleaseChannel, Value::TYPE_STRING, 1107 { kPolicyChromeOsReleaseChannel, Value::TYPE_STRING,
1088 key::kChromeOsReleaseChannel }, 1108 key::kChromeOsReleaseChannel },
1089 #endif 1109 #endif
1090 }; 1110 };
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 // Update the initialization flag. 1147 // Update the initialization flag.
1128 if (!initialization_complete_ && 1148 if (!initialization_complete_ &&
1129 provider_->IsInitializationComplete()) { 1149 provider_->IsInitializationComplete()) {
1130 initialization_complete_ = true; 1150 initialization_complete_ = true;
1131 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1151 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1132 OnInitializationCompleted(true)); 1152 OnInitializationCompleted(true));
1133 } 1153 }
1134 } 1154 }
1135 1155
1136 } // namespace policy 1156 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698