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

Issue 2436903003: Extract ArcSupportMessageHost. (Closed)

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

Description

Extract ArcSupportMessageHost. Currently ArcSupportHost is the ARC's implementation of NativeMessageHost. Because of the system structure, the instance is created and managed by the module outside of ARC. This CL extracts the implementation of that part into ArcSupportMessageHost so that the ArcSupportHost, which will be the main interface to show UI things for ARC, can be managed along with the ARC's life-time. There is a plan to extract non authorization related part from ArcAuthSerivce. Meanwhile, the instance is managed by ArcAuthService, temporarily. BUG=657687, 636218, 633258 , b/31079732 TEST=Ran on test device. Ran trybots. Committed: https://crrev.com/e0eb7942096fb4945f5d5d3ed23632148d5348bd Cr-Commit-Position: refs/heads/master@{#427277}

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 33

Patch Set 3 : rebase #

Patch Set 4 : Address comments. #

Total comments: 5

Patch Set 5 : Address comments. #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -152 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 4 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.h View 1 2 3 3 chunks +27 lines, -30 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.cc View 1 2 3 4 10 chunks +89 lines, -97 lines 0 comments Download
A chrome/browser/chromeos/arc/extensions/arc_support_message_host.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/extensions/arc_support_message_host.cc View 1 2 3 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc View 1 2 3 2 chunks +8 lines, -13 lines 0 comments Download

Messages

Total messages: 38 (19 generated)
hidehiko
PTAL. lhchavez@: All. asargent@: chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc as an OWNER. https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode94 chrome/browser/chromeos/arc/arc_support_host.cc:94: if ...
4 years, 2 months ago (2016-10-20 18:36:17 UTC) #8
asargent_no_longer_on_chrome
CL description typo: "managed by the moudle" - I think you probably meant "managed by ...
4 years, 2 months ago (2016-10-20 19:42:37 UTC) #11
hidehiko
On 2016/10/20 19:42:37, Antony Sargent wrote: > CL description typo: "managed by the moudle" - ...
4 years, 2 months ago (2016-10-21 01:17:35 UTC) #13
Luis Héctor Chávez
first round https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode94 chrome/browser/chromeos/arc/arc_support_host.cc:94: if (g_browser_process->local_state()) { On 2016/10/20 18:36:17, hidehiko ...
4 years, 2 months ago (2016-10-21 02:24:08 UTC) #14
khmel
Nice work! my 5 cents. https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode472 chrome/browser/chromeos/arc/arc_auth_service.cc:472: support_host_.reset(new ArcSupportHost()); I would ...
4 years, 2 months ago (2016-10-21 03:34:49 UTC) #16
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode472 chrome/browser/chromeos/arc/arc_auth_service.cc:472: support_host_.reset(new ArcSupportHost()); On 2016/10/21 ...
4 years, 2 months ago (2016-10-21 07:40:28 UTC) #19
Luis Héctor Chávez
lgtm, defer to khmel@. https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/ui/arc_support_message_host.h File chrome/browser/chromeos/arc/ui/arc_support_message_host.h (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/ui/arc_support_message_host.h#newcode48 chrome/browser/chromeos/arc/ui/arc_support_message_host.h:48: // Overrides NativeMessageHost: On 2016/10/21 ...
4 years, 2 months ago (2016-10-21 07:50:48 UTC) #20
hidehiko
Thank you for review. https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/ui/arc_support_message_host.h File chrome/browser/chromeos/arc/ui/arc_support_message_host.h (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/ui/arc_support_message_host.h#newcode48 chrome/browser/chromeos/arc/ui/arc_support_message_host.h:48: // Overrides NativeMessageHost: On 2016/10/21 ...
4 years, 2 months ago (2016-10-21 10:06:14 UTC) #23
khmel
Thank you for update. I have following recommendation: arc_support_host.h arc_support_message_host.c are quite small classes. arc_support_host ...
4 years, 2 months ago (2016-10-21 14:11:18 UTC) #24
khmel
https://codereview.chromium.org/2436903003/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2436903003/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode560 chrome/browser/chromeos/arc/arc_auth_service.cc:560: const extensions::AppWindowRegistry* const app_window_registry = One more request, can ...
4 years, 2 months ago (2016-10-21 14:27:23 UTC) #25
khmel
4 years, 2 months ago (2016-10-21 14:27:27 UTC) #26
hidehiko
Thank you for review. > I have following recommendation: > arc_support_host.h arc_support_message_host.c are quite small ...
4 years, 2 months ago (2016-10-24 06:03:26 UTC) #27
khmel
lgtm with comments https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode472 chrome/browser/chromeos/arc/arc_auth_service.cc:472: support_host_.reset(new ArcSupportHost()); On 2016/10/21 07:40:27, hidehiko ...
4 years, 1 month ago (2016-10-24 15:05:36 UTC) #28
asargent_no_longer_on_chrome
chrome/browser/extensions/ lgtm
4 years, 1 month ago (2016-10-24 18:22:44 UTC) #29
hidehiko
Thank you for review. https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2436903003/diff/20001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode472 chrome/browser/chromeos/arc/arc_auth_service.cc:472: support_host_.reset(new ArcSupportHost()); On 2016/10/24 15:05:36, ...
4 years, 1 month ago (2016-10-24 19:00:58 UTC) #30
hidehiko
Rebased and submitting. Yury, my understanding is that you're ok to land the latest one, ...
4 years, 1 month ago (2016-10-25 03:39:55 UTC) #31
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/2436903003/100001
4 years, 1 month ago (2016-10-25 03:40:26 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-25 04:56:58 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 04:59:42 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e0eb7942096fb4945f5d5d3ed23632148d5348bd
Cr-Commit-Position: refs/heads/master@{#427277}

Powered by Google App Engine
This is Rietveld 408576698