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

Issue 1973653002: Add a new way of using ServiceProviderImpl without InterfaceFactory. (Closed)

Created:
4 years, 7 months ago by viettrungluu
Modified:
4 years, 7 months ago
Reviewers:
vardhan
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add a new way of using ServiceProviderImpl without InterfaceFactory. Instead, just take a factory function. This has a number of advantages: * Classes don't have to implement InterfaceFactory<I> in order to "provide" services. * Classes can (easily) instantiate impls in different ways (or instantiate different impls for the same service). For now, the new method is called |AddServiceNew<I>()|, but I plan to get rid of |AddService<I>()| and rename |AddServiceNew| to |AddService|. Also, add a bunch of tests. R=vardhan@google.com Committed: https://chromium.googlesource.com/external/mojo/+/65138ce8c234734966a4e299d8feba01d8c9ce07

Patch Set 1 #

Total comments: 1

Patch Set 2 : RequestHandler -> InterfaceRequestHandler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -23 lines) Patch
M mojo/public/cpp/application/application_connection.h View 3 chunks +5 lines, -0 lines 0 comments Download
M mojo/public/cpp/application/lib/service_provider_impl.cc View 1 1 chunk +7 lines, -7 lines 0 comments Download
M mojo/public/cpp/application/lib/service_registry.h View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/application/lib/service_registry.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/cpp/application/service_provider_impl.h View 1 2 chunks +94 lines, -12 lines 0 comments Download
M mojo/public/cpp/application/tests/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
A mojo/public/cpp/application/tests/service_provider_impl_unittest.cc View 1 1 chunk +257 lines, -0 lines 0 comments Download
M services/log/log_impl_unittest.cc View 2 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
viettrungluu
4 years, 7 months ago (2016-05-11 20:22:36 UTC) #1
vardhan
lgtm w/ nit https://codereview.chromium.org/1973653002/diff/1/mojo/public/cpp/application/service_provider_impl.h File mojo/public/cpp/application/service_provider_impl.h (right): https://codereview.chromium.org/1973653002/diff/1/mojo/public/cpp/application/service_provider_impl.h#newcode31 mojo/public/cpp/application/service_provider_impl.h:31: using RequestHandler = nit: more specific ...
4 years, 7 months ago (2016-05-11 23:09:35 UTC) #2
viettrungluu
Thanks. On 2016/05/11 23:09:35, vardhan wrote: > lgtm w/ nit > > https://codereview.chromium.org/1973653002/diff/1/mojo/public/cpp/application/service_provider_impl.h > File ...
4 years, 7 months ago (2016-05-11 23:16:33 UTC) #3
viettrungluu
4 years, 7 months ago (2016-05-11 23:17:20 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
65138ce8c234734966a4e299d8feba01d8c9ce07 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698