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

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: . 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 prefs::kRemoteAccessHostFirewallTraversal }, 286 prefs::kRemoteAccessHostFirewallTraversal },
287 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled, 287 { Value::TYPE_BOOLEAN, kPolicyCloudPrintProxyEnabled,
288 prefs::kCloudPrintProxyEnabled }, 288 prefs::kCloudPrintProxyEnabled },
289 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, 289 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate },
290 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, 290 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins,
291 prefs::kPluginsAllowOutdated }, 291 prefs::kPluginsAllowOutdated },
292 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, 292 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins,
293 prefs::kPluginsAlwaysAuthorize }, 293 prefs::kPluginsAlwaysAuthorize },
294 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, 294 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled,
295 prefs::kEditBookmarksEnabled }, 295 prefs::kEditBookmarksEnabled },
296 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs,
297 prefs::kAllowFileSelectionDialogs },
298 { Value::TYPE_BOOLEAN, kPolicyImportBookmarks,
299 prefs::kImportBookmarks},
300 { Value::TYPE_BOOLEAN, kPolicyImportHistory,
301 prefs::kImportHistory},
302 { Value::TYPE_BOOLEAN, kPolicyImportHomepage,
303 prefs::kImportHomepage},
304 { Value::TYPE_BOOLEAN, kPolicyImportSearchEngine,
305 prefs::kImportSearchEngine },
306 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords,
307 prefs::kImportSavedPasswords },
296 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, 308 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy,
297 prefs::kMaxConnectionsPerProxy }, 309 prefs::kMaxConnectionsPerProxy },
298 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, 310 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo,
299 prefs::kNTPHideWebStorePromo }, 311 prefs::kNTPHideWebStorePromo },
300 312
301 #if defined(OS_CHROMEOS) 313 #if defined(OS_CHROMEOS)
302 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, 314 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend,
303 prefs::kEnableScreenLock }, 315 prefs::kEnableScreenLock },
304 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, 316 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel,
305 prefs::kChromeOsReleaseChannel }, 317 prefs::kChromeOsReleaseChannel },
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, 1164 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN,
1153 key::kAlwaysAuthorizePlugins }, 1165 key::kAlwaysAuthorizePlugins },
1154 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, 1166 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN,
1155 key::kBookmarkBarEnabled }, 1167 key::kBookmarkBarEnabled },
1156 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, 1168 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN,
1157 key::kEditBookmarksEnabled }, 1169 key::kEditBookmarksEnabled },
1158 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, 1170 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN,
1159 key::kAllowFileSelectionDialogs }, 1171 key::kAllowFileSelectionDialogs },
1160 { kPolicyDiskCacheDir, Value::TYPE_STRING, 1172 { kPolicyDiskCacheDir, Value::TYPE_STRING,
1161 key::kDiskCacheDir }, 1173 key::kDiskCacheDir },
1174 { kPolicyImportBookmarks, Value::TYPE_BOOLEAN,
1175 key::kImportBookmarks },
1176 { kPolicyImportHistory, Value::TYPE_BOOLEAN,
1177 key::kImportHistory },
1178 { kPolicyImportHomepage, Value::TYPE_BOOLEAN,
1179 key::kImportHomepage },
1180 { kPolicyImportSearchEngine, Value::TYPE_BOOLEAN,
1181 key::kImportSearchEngine },
1182 { kPolicyImportSavedPasswords, Value::TYPE_BOOLEAN,
1183 key::kImportSavedPasswords },
1162 { kPolicyMaxConnectionsPerProxy, Value::TYPE_INTEGER, 1184 { kPolicyMaxConnectionsPerProxy, Value::TYPE_INTEGER,
1163 key::kMaxConnectionsPerProxy }, 1185 key::kMaxConnectionsPerProxy },
1164 { kPolicyHideWebStorePromo, Value::TYPE_BOOLEAN, 1186 { kPolicyHideWebStorePromo, Value::TYPE_BOOLEAN,
1165 key::kHideWebStorePromo }, 1187 key::kHideWebStorePromo },
1166 1188
1167 #if defined(OS_CHROMEOS) 1189 #if defined(OS_CHROMEOS)
1168 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, 1190 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN,
1169 key::kChromeOsLockOnIdleSuspend }, 1191 key::kChromeOsLockOnIdleSuspend },
1170 { kPolicyChromeOsReleaseChannel, Value::TYPE_STRING, 1192 { kPolicyChromeOsReleaseChannel, Value::TYPE_STRING,
1171 key::kChromeOsReleaseChannel }, 1193 key::kChromeOsReleaseChannel },
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 // Update the initialization flag. 1232 // Update the initialization flag.
1211 if (!initialization_complete_ && 1233 if (!initialization_complete_ &&
1212 provider_->IsInitializationComplete()) { 1234 provider_->IsInitializationComplete()) {
1213 initialization_complete_ = true; 1235 initialization_complete_ = true;
1214 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1236 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1215 OnInitializationCompleted(true)); 1237 OnInitializationCompleted(true));
1216 } 1238 }
1217 } 1239 }
1218 1240
1219 } // namespace policy 1241 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer_host.cc ('k') | chrome/browser/policy/configuration_policy_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698