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

Issue 2128913002: Implement chrome-side intent filtering. (Closed)

Created:
4 years, 5 months ago by Ben Kwa
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement chrome-side intent filtering. Add a basic IntentFilter implementation that approximates android's intent filtering. Call this from the LocalActivityResolver, to determine whether a given URL has any chance of resolving to an Activity, before starting expensive IPC calls to get the app list from android for intent disambiguation. BUG=628788 Committed: https://crrev.com/88636a573855caa28498768bec178f5d316daa63 Cr-Commit-Position: refs/heads/master@{#404995}

Patch Set 1 #

Patch Set 2 : Cleanup. Add missing dtors. #

Patch Set 3 : Make the compiler happy. #

Total comments: 54

Patch Set 4 : Apply CL feedback. #

Patch Set 5 : Apply CL feedback. #

Total comments: 30

Patch Set 6 : Apply CL feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -65 lines) Patch
M components/arc.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/common/intent_helper.mojom View 2 chunks +21 lines, -1 line 0 comments Download
A components/arc/intent_helper/intent_filter.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A components/arc/intent_helper/intent_filter.cc View 1 2 3 4 5 1 chunk +226 lines, -0 lines 0 comments Download
M components/arc/intent_helper/local_activity_resolver.h View 2 chunks +6 lines, -9 lines 0 comments Download
M components/arc/intent_helper/local_activity_resolver.cc View 1 2 3 4 5 3 chunks +6 lines, -55 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
Ben Kwa
4 years, 5 months ago (2016-07-08 15:03:42 UTC) #3
rickyz (no longer on Chrome)
Will probably have more comments next week, sorry for the delay! https://codereview.chromium.org/2128913002/diff/40001/components/arc/intent_helper/intent_filter.cc File components/arc/intent_helper/intent_filter.cc (right): ...
4 years, 5 months ago (2016-07-09 02:13:34 UTC) #4
Yusuke Sato
initial comments: https://codereview.chromium.org/2128913002/diff/40001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/2128913002/diff/40001/components/arc/BUILD.gn#newcode1 components/arc/BUILD.gn:1: # Copyright 2015 The Chromium Authors. All ...
4 years, 5 months ago (2016-07-11 04:38:32 UTC) #5
Ben Kwa
https://codereview.chromium.org/2128913002/diff/40001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/2128913002/diff/40001/components/arc/BUILD.gn#newcode1 components/arc/BUILD.gn:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 5 months ago (2016-07-11 21:22:59 UTC) #6
rickyz (no longer on Chrome)
https://codereview.chromium.org/2128913002/diff/40001/components/arc/intent_helper/intent_filter.cc File components/arc/intent_helper/intent_filter.cc (right): https://codereview.chromium.org/2128913002/diff/40001/components/arc/intent_helper/intent_filter.cc#newcode45 components/arc/intent_helper/intent_filter.cc:45: if (match == false) { nit: if (!match) Or ...
4 years, 5 months ago (2016-07-11 21:27:52 UTC) #7
Ben Kwa
Done - thanks! PTAL. https://codereview.chromium.org/2128913002/diff/40001/components/arc/intent_helper/intent_filter.cc File components/arc/intent_helper/intent_filter.cc (right): https://codereview.chromium.org/2128913002/diff/40001/components/arc/intent_helper/intent_filter.cc#newcode45 components/arc/intent_helper/intent_filter.cc:45: if (match == false) { ...
4 years, 5 months ago (2016-07-11 22:34:02 UTC) #8
rickyz (no longer on Chrome)
lgtm - it's unfortunate that we don't have a great way to avoid duplicating Android ...
4 years, 5 months ago (2016-07-11 23:26:45 UTC) #9
Yusuke Sato
Sorry for the delay. LGTM with (mostly style) comments: https://codereview.chromium.org/2128913002/diff/80001/components/arc/intent_helper/intent_filter.cc File components/arc/intent_helper/intent_filter.cc (right): https://codereview.chromium.org/2128913002/diff/80001/components/arc/intent_helper/intent_filter.cc#newcode6 components/arc/intent_helper/intent_filter.cc:6: ...
4 years, 5 months ago (2016-07-12 10:52:58 UTC) #10
Ben Kwa
Thanks! I will add tests in a follow-up CL for two reasons: 1) this CL ...
4 years, 5 months ago (2016-07-12 16:05:23 UTC) #11
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/2128913002/100001
4 years, 5 months ago (2016-07-12 17:38:25 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/199983) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-12 19:10:59 UTC) #16
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/2128913002/100001
4 years, 5 months ago (2016-07-13 01:56:29 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-13 04:01:12 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 04:03:02 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/88636a573855caa28498768bec178f5d316daa63
Cr-Commit-Position: refs/heads/master@{#404995}

Powered by Google App Engine
This is Rietveld 408576698