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

Issue 2622843002: arc: Provide a per-service getter for ArcServiceManager (Closed)

Created:
3 years, 11 months ago by Luis Héctor Chávez
Modified:
3 years, 11 months ago
Reviewers:
hidehiko, Yusuke Sato
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: Provide a per-service getter for ArcServiceManager This change adds getters for individual ArcServices from ArcServiceManager. This prevents ArcServiceManager::Observer from becoming a place to put random stuff to observe that would be better suited for individual services to expose. BUG=672840 TEST=git cl try Review-Url: https://codereview.chromium.org/2622843002 Cr-Commit-Position: refs/heads/master@{#442934} Committed: https://chromium.googlesource.com/chromium/src/+/ce096d5651c3984e1ed5a260e11ba77d5b37d580

Patch Set 1 #

Patch Set 2 : Moved as much of the impl as possible to the .cc file #

Patch Set 3 : I forgot how to ::type #

Total comments: 27

Patch Set 4 : Streamlined template magic and added tests #

Patch Set 5 : Reworded a comment #

Total comments: 10

Patch Set 6 : Addressed feedback #

Total comments: 6

Patch Set 7 : Added a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -7 lines) Patch
M components/arc/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_service_manager.h View 1 2 3 4 5 6 5 chunks +60 lines, -3 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 2 chunks +25 lines, -4 lines 0 comments Download
A components/arc/arc_service_manager_unittest.cc View 1 2 3 4 5 1 chunk +182 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (19 generated)
Yusuke Sato
https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc#newcode86 components/arc/arc_service_manager.cc:86: DCHECK(named_services_.find(name) == named_services_.end()); What about making this a CHECK? ...
3 years, 11 months ago (2017-01-10 07:11:11 UTC) #6
hidehiko
https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc#newcode87 components/arc/arc_service_manager.cc:87: named_services_.insert(std::make_pair(name, std::move(service))); emplace? https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.h#newcode43 components/arc/arc_service_manager.h:43: ...
3 years, 11 months ago (2017-01-10 08:03:12 UTC) #10
Luis Héctor Chávez
yusukes@ PTAL https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc#newcode86 components/arc/arc_service_manager.cc:86: DCHECK(named_services_.find(name) == named_services_.end()); On 2017/01/10 07:11:10, Yusuke ...
3 years, 11 months ago (2017-01-10 18:41:56 UTC) #13
Yusuke Sato
LGTM with some requests: https://codereview.chromium.org/2622843002/diff/80001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2622843002/diff/80001/components/arc/arc_service_manager.cc#newcode92 components/arc/arc_service_manager.cc:92: DCHECK(!name.empty()); This may actually happen ...
3 years, 11 months ago (2017-01-10 19:30:58 UTC) #14
Luis Héctor Chávez
https://codereview.chromium.org/2622843002/diff/80001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2622843002/diff/80001/components/arc/arc_service_manager.cc#newcode92 components/arc/arc_service_manager.cc:92: DCHECK(!name.empty()); On 2017/01/10 19:30:57, Yusuke Sato wrote: > This ...
3 years, 11 months ago (2017-01-10 23:48:09 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/2622843002/100001
3 years, 11 months ago (2017-01-10 23:49:33 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/97411)
3 years, 11 months ago (2017-01-11 01:21:17 UTC) #20
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/2622843002/100001
3 years, 11 months ago (2017-01-11 01:45:10 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/97532)
3 years, 11 months ago (2017-01-11 03:40:49 UTC) #24
hidehiko
LGTM! https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2622843002/diff/40001/components/arc/arc_service_manager.cc#newcode87 components/arc/arc_service_manager.cc:87: named_services_.insert(std::make_pair(name, std::move(service))); On 2017/01/10 18:41:55, Luis Héctor Chávez ...
3 years, 11 months ago (2017-01-11 05:17:45 UTC) #25
hidehiko
One more minor comment. https://codereview.chromium.org/2622843002/diff/100001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (left): https://codereview.chromium.org/2622843002/diff/100001/components/arc/arc_service_manager.cc#oldcode7 components/arc/arc_service_manager.cc:7: #include <utility> nit: should we ...
3 years, 11 months ago (2017-01-11 05:38:58 UTC) #26
hidehiko
On 2017/01/11 05:38:58, hidehiko wrote: > One more minor comment. > > https://codereview.chromium.org/2622843002/diff/100001/components/arc/arc_service_manager.cc > File ...
3 years, 11 months ago (2017-01-11 05:39:18 UTC) #27
Luis Héctor Chávez
https://codereview.chromium.org/2622843002/diff/100001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (left): https://codereview.chromium.org/2622843002/diff/100001/components/arc/arc_service_manager.cc#oldcode7 components/arc/arc_service_manager.cc:7: #include <utility> On 2017/01/11 05:38:58, hidehiko wrote: > nit: ...
3 years, 11 months ago (2017-01-11 16:01:36 UTC) #28
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/2622843002/120001
3 years, 11 months ago (2017-01-11 16:02:22 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 17:05:22 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ce096d5651c3984e1ed5a260e11b...

Powered by Google App Engine
This is Rietveld 408576698