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

Issue 337533002: Introduce internal::ServiceRegistry to prepare for ServiceProvider split. (Closed)

Created:
6 years, 6 months ago by DaveMoore
Modified:
6 years, 6 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Visibility:
Public.

Description

Introduce internal::ServiceRegistry to prepare for ServiceProvider split. This is to get ready to split ServiceProvider into Shell and Application. It makes the existing Application no longer subclass internal::ServiceConnectorBase::Owner. Instead it puts that functionality in the new class internal::ServiceRegistry and Application uses that by composition. The validation in this cl is meant to be consistent with what's currently in the tree. I'll redo the cl that adds the ability to add a service with a specific validator after the split is done. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276859

Patch Set 1 #

Patch Set 2 : Merge problems #

Total comments: 10

Patch Set 3 : Address review concerns #

Patch Set 4 : Address review concerns #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -105 lines) Patch
M mojo/mojo_public.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/application/application.h View 1 2 2 chunks +18 lines, -26 lines 0 comments Download
M mojo/public/cpp/application/lib/application.cc View 1 2 1 chunk +11 lines, -44 lines 0 comments Download
M mojo/public/cpp/application/lib/service_connector.h View 1 4 chunks +10 lines, -19 lines 0 comments Download
M mojo/public/cpp/application/lib/service_connector.cc View 1 chunk +3 lines, -8 lines 0 comments Download
A mojo/public/cpp/application/lib/service_registry.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A mojo/public/cpp/application/lib/service_registry.cc View 1 2 1 chunk +76 lines, -0 lines 2 comments Download
M mojo/service_manager/service_manager_unittest.cc View 1 2 1 chunk +4 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
DaveMoore
6 years, 6 months ago (2014-06-12 15:21:45 UTC) #1
DaveMoore
Merge problems
6 years, 6 months ago (2014-06-12 15:30:17 UTC) #2
darin (slow to review)
This is a great approach. Just some minor issues: https://codereview.chromium.org/337533002/diff/20001/mojo/public/cpp/application/application.h File mojo/public/cpp/application/application.h (right): https://codereview.chromium.org/337533002/diff/20001/mojo/public/cpp/application/application.h#newcode74 mojo/public/cpp/application/application.h:74: ...
6 years, 6 months ago (2014-06-12 16:11:52 UTC) #3
DaveMoore
Address review concerns
6 years, 6 months ago (2014-06-12 16:28:02 UTC) #4
DaveMoore
https://codereview.chromium.org/337533002/diff/20001/mojo/public/cpp/application/application.h File mojo/public/cpp/application/application.h (right): https://codereview.chromium.org/337533002/diff/20001/mojo/public/cpp/application/application.h#newcode74 mojo/public/cpp/application/application.h:74: virtual bool IsConnectionValid(const mojo::String& service_name, On 2014/06/12 16:11:51, darin ...
6 years, 6 months ago (2014-06-12 16:28:14 UTC) #5
darin (slow to review)
LGTM
6 years, 6 months ago (2014-06-12 16:32:22 UTC) #6
DaveMoore
Address review concerns
6 years, 6 months ago (2014-06-12 16:32:58 UTC) #7
DaveMoore
The CQ bit was checked by davemoore@chromium.org
6 years, 6 months ago (2014-06-12 16:34:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davemoore@chromium.org/337533002/70001
6 years, 6 months ago (2014-06-12 16:36:00 UTC) #9
viettrungluu
https://codereview.chromium.org/337533002/diff/70001/mojo/public/cpp/application/lib/service_registry.cc File mojo/public/cpp/application/lib/service_registry.cc (right): https://codereview.chromium.org/337533002/diff/70001/mojo/public/cpp/application/lib/service_registry.cc#newcode47 mojo/public/cpp/application/lib/service_registry.cc:47: if (name_to_service_connector_.empty()) [I realize that this was just moved ...
6 years, 6 months ago (2014-06-12 18:01:01 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 00:07:38 UTC) #11
Message was sent while issue was closed.
Change committed as 276859

Powered by Google App Engine
This is Rietveld 408576698