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

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

Issue 2127113002: Policy to control ARC Backup&Restore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 4 years, 5 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_support_host.cc
diff --git a/chrome/browser/chromeos/arc/arc_support_host.cc b/chrome/browser/chromeos/arc/arc_support_host.cc
index 97a1277aa847550946dfe14c88d04601806d4790..6e0068a1aa73dad4b55651f6c5406fcffcabaff9 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.cc
+++ b/chrome/browser/chromeos/arc/arc_support_host.cc
@@ -230,7 +230,8 @@ void ArcSupportHost::EnableMetrics(bool is_enabled) {
void ArcSupportHost::EnableBackupRestore(bool is_enabled) {
PrefService* pref_service = arc::ArcAuthService::Get()->profile()->GetPrefs();
- pref_service->SetBoolean(prefs::kArcBackupRestoreEnabled, is_enabled);
+ if (!pref_service->GetBoolean(prefs::kArcBackupRestoreManaged))
+ pref_service->SetBoolean(prefs::kArcBackupRestoreEnabled, is_enabled);
}
void ArcSupportHost::OnMessage(const std::string& request_string) {

Powered by Google App Engine
This is Rietveld 408576698