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

Unified Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 2588423005: Add policies for controlling the roaming profile status and location. (Closed)
Patch Set: Address comments. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc
diff --git a/chrome/browser/policy/configuration_policy_handler_list_factory.cc b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
index 65ed536a1bc1fa223edf37a6ba8ade022210781f..c028993d07a2535feda5e5c495821126f2d00027 100644
--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
@@ -50,6 +50,7 @@
#include "components/signin/core/common/signin_pref_names.h"
#include "components/spellcheck/spellcheck_build_features.h"
#include "components/ssl_config/ssl_config_prefs.h"
+#include "components/sync/base/pref_names.h"
#include "components/sync/driver/sync_policy_handler.h"
#include "components/translate/core/common/translate_pref_names.h"
#include "components/variations/pref_names.h"
@@ -602,20 +603,33 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
prefs::kNetworkThrottlingEnabled,
base::Value::Type::DICTIONARY },
- { key::kAllowScreenLock, prefs::kAllowScreenLock,
+ { key::kAllowScreenLock,
+ prefs::kAllowScreenLock,
base::Value::Type::BOOLEAN },
- { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist,
+ { key::kQuickUnlockModeWhitelist,
+ prefs::kQuickUnlockModeWhitelist,
base::Value::Type::LIST },
- { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout,
+ { key::kQuickUnlockTimeout,
+ prefs::kQuickUnlockTimeout,
base::Value::Type::INTEGER },
- { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength,
+ { key::kPinUnlockMinimumLength,
+ prefs::kPinUnlockMinimumLength,
base::Value::Type::INTEGER },
- { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength,
+ { key::kPinUnlockMaximumLength,
+ prefs::kPinUnlockMaximumLength,
base::Value::Type::INTEGER },
- { key::kPinUnlockWeakPinsAllowed, prefs::kPinUnlockWeakPinsAllowed,
+ { key::kPinUnlockWeakPinsAllowed,
+ prefs::kPinUnlockWeakPinsAllowed,
base::Value::Type::BOOLEAN },
#endif
+
+ { key::kRoamingProfileSupportEnabled,
+ syncer::prefs::kEnableLocalSyncBackend,
+ base::Value::Type::BOOLEAN },
+ { key::kRoamingProfileLocation,
+ syncer::prefs::kLocalSyncBackendDir,
+ base::Value::Type::STRING },
};
class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
« no previous file with comments | « no previous file | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698