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

Issue 2209173002: Migrate ArcUserDataService into ArcAuthService. (Closed)

Created:
4 years, 4 months ago by hidehiko
Modified:
4 years, 4 months ago
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

Migrate ArcUserDataService into ArcAuthService. There are race problems around data removing. One of the cause is that state management is done in ArcAuthService and ArcUserDataService separately. This CL migrates ArcUserDataService into ArcAuthService so that we can remove the data when necessary. BUG=633258 TEST=Ran manually. - "Enable -> ARC boot wait -> Disable" triggers data removal after ARC stop. - "Enable -> Disable before ARC boot" triggers immediate data removal. - "Enable -> ARC boot wait -> Kill ARC instance" does not trigger data removal. Committed: https://crrev.com/6d95ad318e992261c45f5a88a0a599663a6d66ae Cr-Commit-Position: refs/heads/master@{#411923}

Patch Set 1 #

Patch Set 2 : Fix unittest #

Total comments: 9

Patch Set 3 : Added more comments. #

Total comments: 12

Patch Set 4 : Address comment. #

Patch Set 5 : Address comments. #

Total comments: 2

Patch Set 6 : Address comments. #

Patch Set 7 : Fix unittest. #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -33 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 5 chunks +53 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_enterprise_reporting_service.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc View 1 2 3 4 5 1 chunk +2 lines, -15 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.h View 1 2 3 4 5 3 chunks +0 lines, -6 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (26 generated)
hidehiko
This is not a perfect fix, but should cover practically more often cases. PTAL.
4 years, 4 months ago (2016-08-04 17:28:36 UTC) #10
khmel
https://codereview.chromium.org/2209173002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2209173002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode242 chrome/browser/chromeos/arc/arc_auth_service.cc:242: OnArcDataRemoved(true); nit: this used quite confusion for me. May ...
4 years, 4 months ago (2016-08-04 23:23:29 UTC) #11
Luis Héctor Chávez
On 2016/08/04 17:28:36, hidehiko wrote: > This is not a perfect fix, but should cover ...
4 years, 4 months ago (2016-08-08 16:57:09 UTC) #12
hidehiko
PTAL. Luis, > What about the idea of moving the wiping functionality to ArcBridgeService? We ...
4 years, 4 months ago (2016-08-09 13:23:56 UTC) #13
khmel
lgtm https://codereview.chromium.org/2209173002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2209173002/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode242 chrome/browser/chromeos/arc/arc_auth_service.cc:242: OnArcDataRemoved(true); On 2016/08/09 13:23:56, hidehiko wrote: > On ...
4 years, 4 months ago (2016-08-09 15:23:12 UTC) #14
Luis Héctor Chávez
https://codereview.chromium.org/2209173002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2209173002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode239 chrome/browser/chromeos/arc/arc_auth_service.cc:239: clear_required_ = false; This is not needed, since it's ...
4 years, 4 months ago (2016-08-09 16:40:02 UTC) #16
hidehiko
Thank you for reivew. PTAL. https://codereview.chromium.org/2209173002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2209173002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode239 chrome/browser/chromeos/arc/arc_auth_service.cc:239: clear_required_ = false; On ...
4 years, 4 months ago (2016-08-10 05:41:19 UTC) #19
Luis Héctor Chávez
https://codereview.chromium.org/2209173002/diff/40001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (left): https://codereview.chromium.org/2209173002/diff/40001/components/arc/arc_service_manager.cc#oldcode103 components/arc/arc_service_manager.cc:103: arc_user_data_service_.reset(new ArcUserDataService(arc_bridge_service(), On 2016/08/10 05:41:19, hidehiko wrote: > On ...
4 years, 4 months ago (2016-08-10 06:25:48 UTC) #20
dspaid
In the ArcUserDataService we delete user data on startup if the setting is disabled. If ...
4 years, 4 months ago (2016-08-10 07:20:00 UTC) #23
hidehiko
PTAL. Luis, as I told you, I'll re-run manual testing. Let me send out to ...
4 years, 4 months ago (2016-08-10 17:26:06 UTC) #24
Luis Héctor Chávez
lgtm defer to dspaid@ to shorten iteration time.
4 years, 4 months ago (2016-08-10 17:51:21 UTC) #27
dspaid
lgtm
4 years, 4 months ago (2016-08-11 23:34:46 UTC) #30
dspaid
lgtm
4 years, 4 months ago (2016-08-11 23:34:50 UTC) #31
hidehiko
Thank you for review. stevenjb@, could you take a look at chrome/browser/ui/app_list/arc/arc_app_test.{cc,h} as an OWNER?
4 years, 4 months ago (2016-08-12 11:50:52 UTC) #37
stevenjb
lgtm
4 years, 4 months ago (2016-08-12 23:26:50 UTC) #38
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/2209173002/140001
4 years, 4 months ago (2016-08-14 18:03:54 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-14 18:47:37 UTC) #42
commit-bot: I haz the power
4 years, 4 months ago (2016-08-14 18:49:34 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6d95ad318e992261c45f5a88a0a599663a6d66ae
Cr-Commit-Position: refs/heads/master@{#411923}

Powered by Google App Engine
This is Rietveld 408576698