Chromium Code Reviews| 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 f34771731e0e443b62edd325f2df5f5c621cdc3d..10f62668e9588dba83333c87f898a96b5675adf1 100644 |
| --- a/chrome/browser/chromeos/arc/arc_support_host.cc |
| +++ b/chrome/browser/chromeos/arc/arc_support_host.cc |
| @@ -250,6 +250,8 @@ void ArcSupportHost::EnableMetrics(bool is_enabled) { |
| void ArcSupportHost::EnableBackupRestore(bool is_enabled) { |
| PrefService* pref_service = arc::ArcAuthService::Get()->profile()->GetPrefs(); |
| + if (pref_service->IsManagedPreference(prefs::kArcBackupRestoreEnabled)) |
|
bartfab (slow)
2016/07/19 13:55:52
It is safe to set the pref value even when it is m
Sergey Poromov
2016/07/19 14:34:28
Done.
|
| + return; |
| pref_service->SetBoolean(prefs::kArcBackupRestoreEnabled, is_enabled); |
| } |