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

Issue 2145813002: Clear old ARC instance before opt-in. (Closed)

Created:
4 years, 5 months ago by dspaid
Modified:
4 years, 5 months ago
Reviewers:
hidehiko
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show error during opt-in if arc-bridge not stopped. If a user attempts to disable and re-enable ARC in quick succession user data from the former instance will not be cleared by the normal wipe process because kArcEnabled is true again when the bridge is stopped. To work around this the opt-in process will display an error if attempting to opt-in before the previous ARC instance has shut down and it will wipe data explicitly. BUG=627664 TEST=Manually test with following steps: Enable ARC Disable ARC Immediately re-enable ARC Verify error message displayed Verify user data directory removed Click Try again Verify ARC starts up appropriately Committed: https://crrev.com/fe1a51e9faf942ace5613490077fefba8f592621 Cr-Commit-Position: refs/heads/master@{#406216}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : Move forced wipe logic to arc_user_data_service #

Patch Set 4 : update comment #

Patch Set 5 : Fixed test #

Total comments: 1

Patch Set 6 : Use prefs() from PrefMember instead of passing a new parameter #

Total comments: 4

Patch Set 7 : Address Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M components/arc/user_data/arc_user_data_service.h View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download
M components/arc/user_data/arc_user_data_service.cc View 1 2 3 4 5 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (20 generated)
dspaid
4 years, 5 months ago (2016-07-13 00:20:33 UTC) #2
hidehiko
The Subject looks not matching to the what this CL does? https://codereview.chromium.org/2145813002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): ...
4 years, 5 months ago (2016-07-13 08:14:55 UTC) #3
dspaid
rebased and updated title.
4 years, 5 months ago (2016-07-13 23:58:16 UTC) #5
hidehiko
https://codereview.chromium.org/2145813002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2145813002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode670 chrome/browser/chromeos/arc/arc_auth_service.cc:670: clear_required_ = true; For the record of the offline ...
4 years, 5 months ago (2016-07-14 05:11:26 UTC) #6
dspaid
On 2016/07/14 05:11:26, hidehiko wrote: > https://codereview.chromium.org/2145813002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc > File chrome/browser/chromeos/arc/arc_auth_service.cc (right): > > https://codereview.chromium.org/2145813002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode670 > ...
4 years, 5 months ago (2016-07-15 04:41:17 UTC) #7
hidehiko
https://codereview.chromium.org/2145813002/diff/80001/components/arc/user_data/arc_user_data_service.cc File components/arc/user_data/arc_user_data_service.cc (right): https://codereview.chromium.org/2145813002/diff/80001/components/arc/user_data/arc_user_data_service.cc#newcode30 components/arc/user_data/arc_user_data_service.cc:30: pref_change_registrar_.Init(pref_service); arc_enabled_pref_->prefs() should work?
4 years, 5 months ago (2016-07-15 14:39:23 UTC) #18
dspaid
On 2016/07/15 14:39:23, hidehiko wrote: > https://codereview.chromium.org/2145813002/diff/80001/components/arc/user_data/arc_user_data_service.cc > File components/arc/user_data/arc_user_data_service.cc (right): > > https://codereview.chromium.org/2145813002/diff/80001/components/arc/user_data/arc_user_data_service.cc#newcode30 > ...
4 years, 5 months ago (2016-07-19 00:08:37 UTC) #19
hidehiko
LGTM with minor comments. https://codereview.chromium.org/2145813002/diff/100001/components/arc/user_data/arc_user_data_service.h File components/arc/user_data/arc_user_data_service.h (right): https://codereview.chromium.org/2145813002/diff/100001/components/arc/user_data/arc_user_data_service.h#newcode18 components/arc/user_data/arc_user_data_service.h:18: class PrefService; Unused. https://codereview.chromium.org/2145813002/diff/100001/components/arc/user_data/arc_user_data_service.h#newcode65 components/arc/user_data/arc_user_data_service.h:65: ...
4 years, 5 months ago (2016-07-19 02:08:29 UTC) #24
dspaid
https://codereview.chromium.org/2145813002/diff/100001/components/arc/user_data/arc_user_data_service.h File components/arc/user_data/arc_user_data_service.h (right): https://codereview.chromium.org/2145813002/diff/100001/components/arc/user_data/arc_user_data_service.h#newcode18 components/arc/user_data/arc_user_data_service.h:18: class PrefService; On 2016/07/19 02:08:29, hidehiko wrote: > Unused. ...
4 years, 5 months ago (2016-07-19 02:11:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2145813002/120001
4 years, 5 months ago (2016-07-19 02:27:29 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-19 05:03:43 UTC) #30
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 05:05:42 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fe1a51e9faf942ace5613490077fefba8f592621
Cr-Commit-Position: refs/heads/master@{#406216}

Powered by Google App Engine
This is Rietveld 408576698