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

Issue 2579193003: arc: Implement more methods in FakeIntentHelperInstance. (Closed)

Created:
4 years ago by Daniel Erat
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

arc: Implement more methods in FakeIntentHelperInstance. Implement HandleIntent() and RequestIntentHandlerList() within FakeIntentHelperInstance. BUG=633243 Committed: https://crrev.com/e9fd0a588722746c91c7d35ccd35affbe962202f Cr-Commit-Position: refs/heads/master@{#439146}

Patch Set 1 #

Total comments: 17

Patch Set 2 : apply review comments #

Patch Set 3 : use .Clone() for HandledIntent members #

Patch Set 4 : switch push_back to emplace_back #

Patch Set 5 : get std::move-based approach working #

Total comments: 8

Patch Set 6 : apply lhchavez@'s comments #

Patch Set 7 : use default move constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -2 lines) Patch
M components/arc/test/fake_intent_helper_instance.h View 1 2 3 4 3 chunks +31 lines, -0 lines 0 comments Download
M components/arc/test/fake_intent_helper_instance.cc View 1 2 3 4 5 6 4 chunks +41 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (23 generated)
Daniel Erat
https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.cc File components/arc/test/fake_intent_helper_instance.cc (right): https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.cc#newcode21 components/arc/test/fake_intent_helper_instance.cc:21: : std::vector<std::string>()), this is also a bit ugly. all ...
4 years ago (2016-12-16 02:29:04 UTC) #2
hidehiko
My initial scan. https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.cc File components/arc/test/fake_intent_helper_instance.cc (right): https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.cc#newcode66 components/arc/test/fake_intent_helper_instance.cc:66: handled_intents_.emplace_back(HandledIntent(intent, activity)); emplace_back(intent, activity); Could you ...
4 years ago (2016-12-16 04:27:12 UTC) #5
Daniel Erat
https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.cc File components/arc/test/fake_intent_helper_instance.cc (right): https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.cc#newcode66 components/arc/test/fake_intent_helper_instance.cc:66: handled_intents_.emplace_back(HandledIntent(intent, activity)); On 2016/12/16 04:27:12, hidehiko wrote: > emplace_back(intent, ...
4 years ago (2016-12-16 05:41:05 UTC) #8
hidehiko
https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.h File components/arc/test/fake_intent_helper_instance.h (right): https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.h#newcode39 components/arc/test/fake_intent_helper_instance.h:39: struct HandledIntent { On 2016/12/16 05:41:04, Daniel Erat wrote: ...
4 years ago (2016-12-16 06:30:20 UTC) #11
Daniel Erat
On 2016/12/16 06:30:20, hidehiko wrote: > https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.h > File components/arc/test/fake_intent_helper_instance.h (right): > > https://codereview.chromium.org/2579193003/diff/1/components/arc/test/fake_intent_helper_instance.h#newcode39 > ...
4 years ago (2016-12-16 15:05:04 UTC) #14
Daniel Erat
thanks again for the help! it looks like it works after defining move-based copy and ...
4 years ago (2016-12-16 15:21:29 UTC) #17
Luis Héctor Chávez
lgtm with some nits. https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.cc File components/arc/test/fake_intent_helper_instance.cc (right): https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.cc#newcode87 components/arc/test/fake_intent_helper_instance.cc:87: auto it = intent_handlers_.find(intent->action); nit: ...
4 years ago (2016-12-16 16:57:44 UTC) #22
hidehiko
LGTM with Luis's comments!
4 years ago (2016-12-16 17:01:58 UTC) #23
Daniel Erat
(haven't uploaded updated version yet due to unresolved comment suggesting implicit c'tors and d'tor) https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.cc ...
4 years ago (2016-12-16 17:05:37 UTC) #24
Luis Héctor Chávez
https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.h File components/arc/test/fake_intent_helper_instance.h (right): https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.h#newcode40 components/arc/test/fake_intent_helper_instance.h:40: HandledIntent(mojom::IntentInfoPtr intent, On 2016/12/16 17:05:37, Daniel Erat wrote: > ...
4 years ago (2016-12-16 17:16:18 UTC) #25
hidehiko
https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.h File components/arc/test/fake_intent_helper_instance.h (right): https://codereview.chromium.org/2579193003/diff/80001/components/arc/test/fake_intent_helper_instance.h#newcode40 components/arc/test/fake_intent_helper_instance.h:40: HandledIntent(mojom::IntentInfoPtr intent, On 2016/12/16 17:16:18, Luis Héctor Chávez wrote: ...
4 years ago (2016-12-16 17:20:12 UTC) #26
Daniel Erat
thanks again! and sorry that i am awful at c++11.
4 years ago (2016-12-16 17:20:17 UTC) #27
Daniel Erat
thanks, just saw your comment. i've switched to the default move c'tor.
4 years ago (2016-12-16 17:23:26 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/2579193003/110001
4 years ago (2016-12-16 17:24:10 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years ago (2016-12-16 18:10:48 UTC) #37
commit-bot: I haz the power
4 years ago (2016-12-16 18:12:37 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e9fd0a588722746c91c7d35ccd35affbe962202f
Cr-Commit-Position: refs/heads/master@{#439146}

Powered by Google App Engine
This is Rietveld 408576698