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

Unified Diff: chrome/browser/chromeos/arc/arc_settings_service.cc

Issue 2235293002: arc: Support managed Arc and managed Location Service and B&R consents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2225933002_managed_BR_LOC
Patch Set: don't load ToS for managed arc, add policy indicators Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/arc_settings_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_settings_service.cc b/chrome/browser/chromeos/arc/arc_settings_service.cc
index f4ff00f1492cc16549954cb58bbc07897ab6aebb..7d2e4f4a0599fe255810ab0dcc4500f186ef062b 100644
--- a/chrome/browser/chromeos/arc/arc_settings_service.cc
+++ b/chrome/browser/chromeos/arc/arc_settings_service.cc
@@ -206,6 +206,13 @@ void ArcSettingsServiceImpl::SyncRuntimeSettings() const {
SyncSpokenFeedbackEnabled();
SyncTimeZone();
SyncUse24HourClock();
+
+ const PrefService* const prefs =
+ ProfileManager::GetActiveUserProfile()->GetPrefs();
+ if (prefs->IsManagedPreference(prefs::kArcBackupRestoreEnabled))
+ SyncBackupEnabled();
+ if (prefs->IsManagedPreference(prefs::kArcLocationServiceEnabled))
+ SyncLocationServiceEnabled();
}
void ArcSettingsServiceImpl::SyncInitialSettings() const {

Powered by Google App Engine
This is Rietveld 408576698