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

Issue 2436763004: More graceful shutdown for ArcSession. (Closed)

Created:
4 years, 2 months ago by hidehiko
Modified:
4 years, 2 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, khmel+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, hashimoto
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

More graceful shutdown for ArcSession. Currently, ArcSession uses the same function for stop request by user's action, and Chrome's process shutdown. However, those runs under different conditions. Specifically on Chrome's process shutdown, there is no more running UI message loop, so async callback on UI thread will not work later. For more graceful shutdown, this CL introduces a dedicated method for shutdown. BUG=633258 BUG=b/30236819 TEST=Ran bots. Ran on the test device and made sure the shutdown works. Committed: https://crrev.com/1362287708e9a559efbe66b4a137150c6aef7348 Cr-Commit-Position: refs/heads/master@{#426760}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address comments. #

Patch Set 3 : Rebase #

Patch Set 4 : Add StopArcInstance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -56 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 chunks +13 lines, -5 lines 0 comments Download
M components/arc/arc_bridge_service_impl.h View 1 2 chunks +8 lines, -4 lines 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 4 chunks +16 lines, -5 lines 0 comments Download
M components/arc/arc_bridge_service_unittest.cc View 1 7 chunks +26 lines, -12 lines 0 comments Download
M components/arc/arc_service_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/arc/arc_session.h View 1 3 chunks +8 lines, -1 line 0 comments Download
M components/arc/arc_session.cc View 1 2 3 15 chunks +49 lines, -17 lines 0 comments Download
M components/arc/test/fake_arc_bridge_service.h View 1 chunk +4 lines, -3 lines 0 comments Download
M components/arc/test/fake_arc_bridge_service.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M components/arc/test/fake_arc_session.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/test/fake_arc_session.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
hidehiko
PTAL. lhchavez@: all. bartfab@: chrome/browser/policy/policy_browsertest.cc as an OWNER. Luis, this is the CL to follow ...
4 years, 2 months ago (2016-10-20 10:09:08 UTC) #6
bartfab (slow)
policy_browsertest.cc LGTM https://codereview.chromium.org/2436763004/diff/1/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/2436763004/diff/1/chrome/browser/policy/policy_browsertest.cc#newcode4193 chrome/browser/policy/policy_browsertest.cc:4193: // Here inject FakeArcSession so blocking task ...
4 years, 2 months ago (2016-10-20 16:16:24 UTC) #7
Luis Héctor Chávez
https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_bridge_service.h#newcode117 components/arc/arc_bridge_service.h:117: virtual void OnShutdown() = 0; Can you add a ...
4 years, 2 months ago (2016-10-21 00:43:42 UTC) #8
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/2436763004/diff/1/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/2436763004/diff/1/chrome/browser/policy/policy_browsertest.cc#newcode4193 chrome/browser/policy/policy_browsertest.cc:4193: // Here inject FakeArcSession ...
4 years, 2 months ago (2016-10-21 04:34:04 UTC) #11
Luis Héctor Chávez
https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_bridge_service.h#newcode117 components/arc/arc_bridge_service.h:117: virtual void OnShutdown() = 0; On 2016/10/21 04:34:03, hidehiko ...
4 years, 2 months ago (2016-10-21 06:34:20 UTC) #14
hashimoto
https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_session.cc File components/arc/arc_session.cc (right): https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_session.cc#newcode602 components/arc/arc_session.cc:602: // After Chrome's shutdown, SessionManager shuts down the ARC ...
4 years, 2 months ago (2016-10-21 07:20:27 UTC) #16
Luis Héctor Chávez
lgtm. as we discussed offline, please add the explicit shutdown call if possible. https://codereview.chromium.org/2436763004/diff/1/components/arc/arc_session.cc File ...
4 years, 2 months ago (2016-10-21 07:53:43 UTC) #17
hidehiko
On 2016/10/21 07:53:43, Luis Héctor Chávez wrote: > lgtm. as we discussed offline, please add ...
4 years, 2 months ago (2016-10-21 07:57:34 UTC) #20
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/2436763004/60001
4 years, 2 months ago (2016-10-21 09:55:31 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-21 10:05:36 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:28:29 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1362287708e9a559efbe66b4a137150c6aef7348
Cr-Commit-Position: refs/heads/master@{#426760}

Powered by Google App Engine
This is Rietveld 408576698