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

Issue 1475563002: arc-bridge: Implement IPC message for app launcher (Closed)

Created:
5 years ago by khmel
Modified:
5 years ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc-bridge: Implement IPC message for app launcher. This CL comes along with: https://codereview.chromium.org/1481523002 (split arc_bride_service) https://codereview.chromium.org/1464353003 (fake_arc_bridge) https://codereview.chromium.org/1413153007 (app_list) This includes set of IPC messages to interact with Android via ARC bridge service in chromeos. BUG=558209 BUG=b/24545231 TEST=Build and deploy android, chrome, chromium CLs. Apps appear in chromium app launcher. Once clicked, app is started in Android window. TEST=build Chrome with enable_arc=1 Debug/Release TEST=unit_tests with enable_arc=1 Debug/Release (Together with all required CLs) Committed: https://crrev.com/6644c3726855d20038fc1a30d37afdc072f83632 Cr-Commit-Position: refs/heads/master@{#362895}

Patch Set 1 #

Patch Set 2 : Reorder lines to reduce diff #

Patch Set 3 : Add missing files #

Total comments: 2

Patch Set 4 : Use creator for ArcBridgeService #

Total comments: 26

Patch Set 5 : move spliting arc_bridge_service to another CL #

Total comments: 1

Patch Set 6 : few more nits addressed #

Patch Set 7 : Rebased (change to use switch for arc) #

Total comments: 2

Patch Set 8 : Rebases, used IPC_STRUCT_ macros #

Patch Set 9 : Add AppsObserver #

Total comments: 16

Patch Set 10 : Renaming and nits #

Total comments: 6

Patch Set 11 : Add arc::ScaleFactor enum #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -1 line) Patch
M components/arc.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +40 lines, -0 lines 2 comments Download
M components/arc/arc_bridge_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +51 lines, -0 lines 0 comments Download
M components/arc/common/arc_host_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -0 lines 0 comments Download
M components/arc/common/arc_instance_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +22 lines, -0 lines 0 comments Download
M components/arc/common/arc_message_generator.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A components/arc/common/arc_message_traits.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 4 comments Download
M components/arc/common/arc_message_types.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +28 lines, -1 line 3 comments Download

Dependent Patchsets:

Messages

Total messages: 73 (20 generated)
khmel1
This is result of splitting off: https://codereview.chromium.org/1413153007 PTAL
5 years ago (2015-11-24 09:50:15 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1475563002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h File chrome/browser/chromeos/chrome_browser_main_chromeos.h (right): https://codereview.chromium.org/1475563002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h#newcode87 chrome/browser/chromeos/chrome_browser_main_chromeos.h:87: scoped_ptr<arc::ArcBridgeServiceImpl> arc_bridge_service_; why are you directly using the Impl ...
5 years ago (2015-11-24 13:14:03 UTC) #6
khmel1
Used creator to create ArcBridgeService. PTAL https://codereview.chromium.org/1475563002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h File chrome/browser/chromeos/chrome_browser_main_chromeos.h (right): https://codereview.chromium.org/1475563002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h#newcode87 chrome/browser/chromeos/chrome_browser_main_chromeos.h:87: scoped_ptr<arc::ArcBridgeServiceImpl> arc_bridge_service_; On ...
5 years ago (2015-11-25 03:35:42 UTC) #7
khmel1
Satoru-san, Could you please alternatively review chrome/browser/chromeos/chrome_browser_main_chromeos.cc? Hidehiko-san, Could you please take a look into ...
5 years ago (2015-11-25 06:28:28 UTC) #9
dcheng
Also, I think I've mentioned this in the past, but I don't feel like I ...
5 years ago (2015-11-25 06:34:07 UTC) #11
satorux1
chrome/browser/chromeos/chrome_browser_main_chromeos.cc lgtm but one question: https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service_impl.cc#newcode308 components/arc/arc_bridge_service_impl.cc:308: ArcBridgeService* ArcBridgeService::Create( shouldn't this ...
5 years ago (2015-11-25 06:35:08 UTC) #13
elijahtaylor1
I think you forgot to add hidehiko, but non-security stuff lgtm based on it being ...
5 years ago (2015-11-25 06:40:02 UTC) #14
khmel1
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode85 components/arc/arc_bridge_service.h:85: const std::vector<uint8_t>& icon_png_data) {} On 2015/11/25 06:34:07, dcheng wrote: ...
5 years ago (2015-11-25 06:51:08 UTC) #15
satorux1
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service_impl.cc#newcode308 components/arc/arc_bridge_service_impl.cc:308: ArcBridgeService* ArcBridgeService::Create( On 2015/11/25 06:51:08, khmel1 wrote: > On ...
5 years ago (2015-11-25 07:08:50 UTC) #16
satorux1
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service_impl.cc#newcode308 components/arc/arc_bridge_service_impl.cc:308: ArcBridgeService* ArcBridgeService::Create( FWIW, I played with a one liner ...
5 years ago (2015-11-25 07:18:57 UTC) #17
hidehiko
Can you split this into two? - Extract "impl" code. - Add your new IPC ...
5 years ago (2015-11-25 07:47:37 UTC) #19
khmel1
Thanks for reviewing. 1. Moved splitting arc_bridge_servivce.h to another CL: https://codereview.chromium.org/1481523002 2. Introduced arc::AppInfo to ...
5 years ago (2015-11-25 15:28:31 UTC) #21
dcheng
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode85 components/arc/arc_bridge_service.h:85: const std::vector<uint8_t>& icon_png_data) {} On 2015/11/25 at 06:51:08, khmel1 ...
5 years ago (2015-11-25 19:34:55 UTC) #23
khmel1
On 2015/11/25 19:34:55, dcheng wrote: > https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h > File components/arc/arc_bridge_service.h (right): > > https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode85 > ...
5 years ago (2015-11-25 19:41:49 UTC) #24
Luis Héctor Chávez
lgtm from ARC side. https://codereview.chromium.org/1475563002/diff/120001/components/arc/arc_bridge_service_impl.cc File components/arc/arc_bridge_service_impl.cc (right): https://codereview.chromium.org/1475563002/diff/120001/components/arc/arc_bridge_service_impl.cc#newcode279 components/arc/arc_bridge_service_impl.cc:279: const std::string& activity, nit: Misaligned
5 years ago (2015-11-25 21:53:40 UTC) #25
hidehiko
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode91 components/arc/arc_bridge_service.h:91: ArcBridgeService(); On 2015/11/25 15:28:31, khmel1 wrote: > On 2015/11/25 ...
5 years ago (2015-11-26 03:47:22 UTC) #26
khmel1
Base CL was submitted and I rebased. Also use IPC_ macros for arc::AppInfo params. PTAL ...
5 years ago (2015-11-27 05:24:01 UTC) #28
dcheng
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode85 components/arc/arc_bridge_service.h:85: const std::vector<uint8_t>& icon_png_data) {} On 2015/11/27 at 05:24:01, khmel1 ...
5 years ago (2015-11-27 05:39:56 UTC) #29
khmel1
https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode85 components/arc/arc_bridge_service.h:85: const std::vector<uint8_t>& icon_png_data) {} On 2015/11/27 05:39:56, dcheng wrote: ...
5 years ago (2015-11-27 05:53:16 UTC) #30
dcheng
On 2015/11/27 at 05:53:16, khmel wrote: > https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h > File components/arc/arc_bridge_service.h (right): > > https://codereview.chromium.org/1475563002/diff/60001/components/arc/arc_bridge_service.h#newcode85 ...
5 years ago (2015-11-27 20:36:14 UTC) #31
khmel1
On 2015/11/27 20:36:14, dcheng wrote: > On 2015/11/27 at 05:53:16, khmel wrote: > > > ...
5 years ago (2015-11-30 01:58:00 UTC) #32
khmel1
Split observers into 2 parts. One is generic ArcBridgeService events and second is ARC apps ...
5 years ago (2015-11-30 01:58:28 UTC) #33
dcheng
On 2015/11/30 at 01:58:28, khmel wrote: > Split observers into 2 parts. One is generic ...
5 years ago (2015-11-30 23:11:12 UTC) #34
khmel1
On 2015/11/30 23:11:12, dcheng wrote: > On 2015/11/30 at 01:58:28, khmel wrote: > > Split ...
5 years ago (2015-12-01 00:11:18 UTC) #35
khmel1
On 2015/12/01 00:11:18, khmel1 wrote: > On 2015/11/30 23:11:12, dcheng wrote: > > On 2015/11/30 ...
5 years ago (2015-12-01 00:14:35 UTC) #36
hidehiko
My main request is to update the comment in arc_host_messages.h. Other replies are style-/wording- related ...
5 years ago (2015-12-01 08:18:25 UTC) #37
khmel1
Thanks Hidehiko-san for taking another round of review. I renamed some methods/fields and updated nits. ...
5 years ago (2015-12-01 09:49:32 UTC) #38
khmel1
PTAL
5 years ago (2015-12-01 09:49:46 UTC) #39
hidehiko
lgtm
5 years ago (2015-12-01 10:01:22 UTC) #40
Jorge Lucangeli Obes
https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_host_messages.h File components/arc/common/arc_host_messages.h (right): https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_host_messages.h#newcode37 components/arc/common/arc_host_messages.h:37: int, /* scale_factor */ Can scale_factor be negative? https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_instance_messages.h ...
5 years ago (2015-12-01 15:17:22 UTC) #41
khmel1
https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_host_messages.h File components/arc/common/arc_host_messages.h (right): https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_host_messages.h#newcode37 components/arc/common/arc_host_messages.h:37: int, /* scale_factor */ On 2015/12/01 15:17:22, Jorge Lucangeli ...
5 years ago (2015-12-01 15:46:29 UTC) #42
Jorge Lucangeli Obes
On 2015/12/01 15:46:29, khmel1 wrote: > https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_host_messages.h > File components/arc/common/arc_host_messages.h (right): > > https://codereview.chromium.org/1475563002/diff/180001/components/arc/common/arc_host_messages.h#newcode37 > ...
5 years ago (2015-12-01 15:52:00 UTC) #43
khmel1
On 2015/12/01 15:52:00, Jorge Lucangeli Obes wrote: > On 2015/12/01 15:46:29, khmel1 wrote: > > ...
5 years ago (2015-12-01 15:59:55 UTC) #44
Jorge Lucangeli Obes
On 2015/12/01 15:59:55, khmel1 wrote: > On 2015/12/01 15:52:00, Jorge Lucangeli Obes wrote: > > ...
5 years ago (2015-12-01 16:51:26 UTC) #45
khmel1
On 2015/12/01 16:51:26, Jorge Lucangeli Obes wrote: > On 2015/12/01 15:59:55, khmel1 wrote: > > ...
5 years ago (2015-12-01 22:31:00 UTC) #46
khmel1
Added arc::ScaleFactor enum PTAL https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/arc_message_types.h File components/arc/common/arc_message_types.h (right): https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/arc_message_types.h#newcode43 components/arc/common/arc_message_types.h:43: enum ScaleFactor : int { ...
5 years ago (2015-12-02 00:31:47 UTC) #47
dcheng
lgtm from an ipc perspective For the future, it would make things easier if https://codereview.chromium.org/1413153007 ...
5 years ago (2015-12-02 18:44:29 UTC) #48
khmel1
lgtm Hi Daniel, Thank you for your review. Yes, multiple CLs have some difficulties, however ...
5 years ago (2015-12-03 00:14:08 UTC) #49
khmel1
lgtm Hi Daniel, Thank you for your review. Yes, multiple CLs have some difficulties, however ...
5 years ago (2015-12-03 00:14:13 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475563002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475563002/200001
5 years ago (2015-12-03 00:16:04 UTC) #53
khmel1
lgtm
5 years ago (2015-12-03 00:16:19 UTC) #54
khmel1
lgtm
5 years ago (2015-12-03 00:16:22 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/149125)
5 years ago (2015-12-03 01:01:50 UTC) #57
khmel1
lgtm AddExtensionWithMenuOpen is flaky.
5 years ago (2015-12-03 01:06:13 UTC) #59
khmel1
lgtm AddExtensionWithMenuOpen is flaky.
5 years ago (2015-12-03 01:06:14 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475563002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475563002/200001
5 years ago (2015-12-03 01:07:12 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/138753)
5 years ago (2015-12-03 01:59:47 UTC) #63
khmel1
lgtm
5 years ago (2015-12-03 02:05:20 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475563002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475563002/200001
5 years ago (2015-12-03 02:06:21 UTC) #66
yoshiki
Sorry for jumping in, and let me add some nit comments. https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/arc_message_traits.h File components/arc/common/arc_message_traits.h (right): ...
5 years ago (2015-12-03 02:24:32 UTC) #68
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-12-03 03:42:29 UTC) #70
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/6644c3726855d20038fc1a30d37afdc072f83632 Cr-Commit-Position: refs/heads/master@{#362895}
5 years ago (2015-12-03 03:44:07 UTC) #72
khmel1
5 years ago (2015-12-03 03:53:27 UTC) #73
Message was sent while issue was closed.
Hi Yoshiki-san,

You are always welcome, please feel free to join any CL (at least my:)).

https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/...
File components/arc/common/arc_message_traits.h (right):

https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/...
components/arc/common/arc_message_traits.h:10:
arc::ScaleFactor::SCALE_FACTOR_100P,
On 2015/12/03 02:24:32, yoshiki wrote:
> SCALE_FACTOR_NONE is never passed, right? SCALE_FACTOR_NONE is smaller than
> SCALE_FACTOR_100P.

Right, SCALE_FACTOR_NONE is invalid value for this IPC and it is yes, smaller
than 100P.

https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/...
components/arc/common/arc_message_traits.h:11:
arc::ScaleFactor::NUM_SCALE_FACTORS);
On 2015/12/03 02:24:32, yoshiki wrote:
> This is the max value, so you may specify "NUM_SCALE_FACTORS - 1"?

Yes, you are right, they are both inclusive and I had wrong understanding. Will
fix in the next CL or at separate CL. 565065 is reported for this. Thanks for
attention!

https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/...
File components/arc/common/arc_message_types.h (right):

https://codereview.chromium.org/1475563002/diff/200001/components/arc/common/...
components/arc/common/arc_message_types.h:43: enum ScaleFactor : int {
On 2015/12/03 02:24:32, yoshiki wrote:
> It might be better to use "enum class" instead.

I would keep this one-to-one as they are originally declared for consistency (if
no rule to force to do differently).

Powered by Google App Engine
This is Rietveld 408576698