Commit 1c7841e8 authored by dspaid's avatar dspaid Committed by Commit bot

Make the ARC opt-in preference not synced.

If we sync the ARC opt-in prefence we may cause unintentional data loss
when the user opts-out of ARC on one device.

BUG=633017
TEST=Manually test by opting out of ARC on one machine and observing a
second (opted-in) machine's state.

Review-Url: https://codereview.chromium.org/2198733002
Cr-Commit-Position: refs/heads/master@{#408909}
parent 6887d4d4
......@@ -153,9 +153,9 @@ ArcAuthService* ArcAuthService::Get() {
// static
void ArcAuthService::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
prefs::kArcEnabled, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
// TODO(dspaid): Add a syncable default preference so that new
// devices get the last opt-in preference.
registry->RegisterBooleanPref(prefs::kArcEnabled, false);
registry->RegisterBooleanPref(prefs::kArcSignedIn, false);
registry->RegisterBooleanPref(prefs::kArcBackupRestoreEnabled, true);
registry->RegisterBooleanPref(prefs::kArcLocationServiceEnabled, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment