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

Issue 2388763002: Remove controller concept from the ARC support extension. (Closed)

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

Description

Remove controller concept from the ARC support extension. Currently, the responsibility of the ARC auth code control flow was distributed across ArcAuthService ArcSupportHost and background.js etc. This CL removes it from background.js, as a preparation to move all of them into a manageable form. Now, background.js has two types of messages. 1) Action, which is sent from the native code, to do something in extension, and 2) Event to notify to the native code that something (e.g., user clieck etc.) is happend in the extension BUG=b/31079732 TEST=Ran on test device. Ran tests. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e4d20a317bbc7193b54bb28cdf7cafc242630ac7 Cr-Commit-Position: refs/heads/master@{#422734}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -85 lines) Patch
M chrome/browser/chromeos/arc/arc_support_host.cc View 1 2 3 2 chunks +77 lines, -64 lines 0 comments Download
M chrome/browser/resources/chromeos/arc_support/background.js View 1 2 4 chunks +13 lines, -21 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
hidehiko
PTAL.
4 years, 2 months ago (2016-10-03 15:45:14 UTC) #7
xiyuan
lgtm
4 years, 2 months ago (2016-10-03 15:58:31 UTC) #8
hidehiko
On 2016/10/03 15:58:31, xiyuan wrote: > lgtm Thank you for quick review. PTAL, Luis.
4 years, 2 months ago (2016-10-03 16:58:36 UTC) #9
Luis Héctor Chávez
https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc#newcode54 chrome/browser/chromeos/arc/arc_support_host.cc:54: const char kEvent[] = "event"; can you make all ...
4 years, 2 months ago (2016-10-03 20:40:17 UTC) #10
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc#newcode54 chrome/browser/chromeos/arc/arc_support_host.cc:54: const char kEvent[] = ...
4 years, 2 months ago (2016-10-04 04:48:19 UTC) #13
Luis Héctor Chávez
lgtm to avoid another cross-timezone roundtrip. https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc#newcode380 chrome/browser/chromeos/arc/arc_support_host.cc:380: if (event == ...
4 years, 2 months ago (2016-10-04 04:57:12 UTC) #14
hidehiko
Thank you for review. Submitting. https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2388763002/diff/1/chrome/browser/chromeos/arc/arc_support_host.cc#newcode380 chrome/browser/chromeos/arc/arc_support_host.cc:380: if (event == kEventOnAuthSuccedded) ...
4 years, 2 months ago (2016-10-04 06:13:08 UTC) #15
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/2388763002/60001
4 years, 2 months ago (2016-10-04 06:13:30 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/153439)
4 years, 2 months ago (2016-10-04 07:43:18 UTC) #20
hidehiko
Looks unrelated... Retrying.
4 years, 2 months ago (2016-10-04 07:51:50 UTC) #21
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/2388763002/60001
4 years, 2 months ago (2016-10-04 07:52:07 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-04 08:36:36 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 08:38:14 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e4d20a317bbc7193b54bb28cdf7cafc242630ac7
Cr-Commit-Position: refs/heads/master@{#422734}

Powered by Google App Engine
This is Rietveld 408576698