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

Issue 2582003002: Refactor ArcBridgeServiceImpl part 1. (Closed)

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

Description

Refactor ArcBridgeServiceImpl part 1. This CL refactors ArcBridgeServiceImpl focusing on the retry mechanism. - With this CL, it starts to use OneShotTimer, which supports cancel operation. - Rename "reconnect" to "restart" for wording consistency. - Introduce restart_delay_ for testing, instead of special bool flag. Also, for restarting of testing, get rid of synchronous PrerequisitesChanged() call, instead PostTask always. - Extract StartArcSession() for sharing PrerequisitesChanged() and restarting. - Added more DCHECKs. BUG=657687 BUG=b/31079732 TEST=Ran bots. Committed: https://crrev.com/e18e9bcb729ce33f96a7b90c659cb5016bf97dbc Cr-Commit-Position: refs/heads/master@{#439850}

Patch Set 1 #

Total comments: 15

Patch Set 2 : rebase #

Patch Set 3 : Address comments. #

Patch Set 4 : Address comments. #

Patch Set 5 : Fix the latest bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -55 lines) Patch
M components/arc/arc_bridge_service_impl.h View 4 chunks +13 lines, -10 lines 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 2 3 4 6 chunks +75 lines, -42 lines 0 comments Download
M components/arc/arc_bridge_service_unittest.cc View 1 5 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
hidehiko
For better code review-ability, I split this CL from crrev.com/2574013003. Hope it is also better ...
4 years ago (2016-12-16 12:15:05 UTC) #6
Luis Héctor Chávez
Yes, this is much easier to review :D https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc#newcode25 components/arc/arc_bridge_service_impl.cc:25: namespace ...
4 years ago (2016-12-16 23:02:14 UTC) #7
Luis Héctor Chávez
https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc#newcode89 components/arc/arc_bridge_service_impl.cc:89: void ArcBridgeServiceImpl::PrerequisitesChanged() { On 2016/12/16 23:02:13, Luis Héctor Chávez ...
4 years ago (2016-12-16 23:06:35 UTC) #8
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc#newcode25 components/arc/arc_bridge_service_impl.cc:25: namespace { On 2016/12/16 ...
4 years ago (2016-12-19 07:41:21 UTC) #10
Luis Héctor Chávez
https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc#newcode168 components/arc/arc_bridge_service_impl.cc:168: if (session_started_ && On 2016/12/19 07:41:21, hidehiko wrote: > ...
4 years ago (2016-12-19 22:23:38 UTC) #14
Luis Héctor Chávez
errr. forgot to lgtm.
4 years ago (2016-12-19 22:37:53 UTC) #15
hidehiko
Thank you for review. https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/2582003002/diff/1/components/arc/arc_bridge_service_impl.cc#newcode168 components/arc/arc_bridge_service_impl.cc:168: if (session_started_ && On 2016/12/19 ...
4 years ago (2016-12-20 13:38:02 UTC) #18
Luis Héctor Chávez
lgtm++!
4 years ago (2016-12-20 17:09:20 UTC) #23
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/2582003002/80001
4 years ago (2016-12-20 18:23:18 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-20 18:28:56 UTC) #30
commit-bot: I haz the power
4 years ago (2016-12-20 18:32:27 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e18e9bcb729ce33f96a7b90c659cb5016bf97dbc
Cr-Commit-Position: refs/heads/master@{#439850}

Powered by Google App Engine
This is Rietveld 408576698