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

Issue 275363002: Internalize ServiceConnector<> (Closed)

Created:
6 years, 7 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, ben+mojo_chromium.org
Visibility:
Public.

Description

Internalize ServiceConnector<> BUG=

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Update #

Patch Set 4 : Update #

Patch Set 5 : Merge #

Total comments: 17

Patch Set 6 : Address comments #

Patch Set 7 : Merge fallout #

Patch Set 8 : Define two AddService() methods because default template args aren't supported everywhere #

Patch Set 9 : Move ViewManagerConnection initialization to SetClient() #

Total comments: 2

Patch Set 10 : Add OnConnectionEstablished() #

Patch Set 11 : Add OnConnectionEstablished() #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -421 lines) Patch
M mojo/dbus/dbus_external_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/launcher/launcher.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -9 lines 0 comments Download
M mojo/mojo_public.gypi View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/error_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -9 lines 0 comments Download
M mojo/public/cpp/bindings/interface_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_impl_internal.h View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -3 lines 3 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -3 lines 1 comment Download
M mojo/public/cpp/shell/application.h View 1 2 3 4 5 6 7 8 9 2 chunks +53 lines, -7 lines 0 comments Download
A mojo/public/cpp/shell/connect.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
D mojo/public/cpp/shell/lib/service.cc View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
A + mojo/public/cpp/shell/lib/service_connector.h View 1 2 3 4 5 5 chunks +53 lines, -106 lines 0 comments Download
A + mojo/public/cpp/shell/lib/service_connector.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/shell/service.h View 1 2 3 1 chunk +0 lines, -194 lines 0 comments Download
M mojo/service_manager/service_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +13 lines, -10 lines 0 comments Download
M mojo/services/dbus_echo/dbus_echo_service.cc View 1 2 3 2 chunks +4 lines, -2 lines 1 comment Download
M mojo/services/native_viewport/native_viewport_service.cc View 1 2 3 4 5 6 4 chunks +9 lines, -9 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/main.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
M mojo/services/view_manager/root_view_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/view_manager_connection.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -8 lines 0 comments Download
M mojo/services/view_manager/view_manager_connection.cc View 1 2 3 4 5 6 7 8 9 13 chunks +28 lines, -22 lines 0 comments Download
M mojo/services/view_manager/view_manager_connection_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/view_manager_loader.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
DaveMoore
6 years, 7 months ago (2014-05-10 15:01:52 UTC) #1
DaveMoore
Update
6 years, 7 months ago (2014-05-10 15:02:50 UTC) #2
DaveMoore
Update
6 years, 7 months ago (2014-05-12 20:42:57 UTC) #3
DaveMoore
Merge
6 years, 7 months ago (2014-05-12 21:29:53 UTC) #4
DaveMoore
6 years, 7 months ago (2014-05-12 21:32:49 UTC) #5
darin (slow to review)
This looks great. No major concerns on my part. LGTM w/ nits. https://codereview.chromium.org/275363002/diff/80001/mojo/examples/launcher/launcher.cc File mojo/examples/launcher/launcher.cc ...
6 years, 7 months ago (2014-05-12 22:04:52 UTC) #6
DaveMoore
Address comments
6 years, 7 months ago (2014-05-12 23:38:02 UTC) #7
DaveMoore
The CQ bit was checked by davemoore@chromium.org
6 years, 7 months ago (2014-05-12 23:39:13 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/275363002/100001
6 years, 7 months ago (2014-05-12 23:40:44 UTC) #9
DaveMoore
Merge fallout
6 years, 7 months ago (2014-05-13 00:02:36 UTC) #10
DaveMoore
The CQ bit was checked by davemoore@chromium.org
6 years, 7 months ago (2014-05-13 00:03:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davemoore@chromium.org/275363002/120001
6 years, 7 months ago (2014-05-13 00:03:43 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 04:35:31 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 04:41:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/25924)
6 years, 7 months ago (2014-05-13 04:41:16 UTC) #15
DaveMoore
Define two AddService() methods because default template args aren't supported everywhere
6 years, 7 months ago (2014-05-13 17:43:26 UTC) #16
DaveMoore
The CQ bit was checked by davemoore@chromium.org
6 years, 7 months ago (2014-05-13 17:43:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davemoore@chromium.org/275363002/140001
6 years, 7 months ago (2014-05-13 17:44:14 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 20:43:04 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 20:47:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26213) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/30944)
6 years, 7 months ago (2014-05-13 20:47:21 UTC) #21
DaveMoore
Move ViewManagerConnection initialization to SetClient()
6 years, 7 months ago (2014-05-14 16:47:32 UTC) #22
DaveMoore
I had to make some changes to ViewManagerConnection to fix test failures. They were because ...
6 years, 7 months ago (2014-05-14 16:50:31 UTC) #23
DaveMoore
+sky
6 years, 7 months ago (2014-05-14 16:53:33 UTC) #24
darin (slow to review)
Hmm... not sure about doing initialization in SetClient. It can't happen in the ctor because ...
6 years, 7 months ago (2014-05-14 17:04:30 UTC) #25
DaveMoore
Yes, it uses the client. I'd hate to impose Initialize() on every instance. We could ...
6 years, 7 months ago (2014-05-14 17:10:39 UTC) #26
darin (slow to review)
Initialize could be called from SetClient or even BindTo{Pipe,Proxy}. Overriding SetClient means you have to ...
6 years, 7 months ago (2014-05-14 17:33:46 UTC) #27
DaveMoore
I'm not worried about where to call it from (several options). It's more about stealing ...
6 years, 7 months ago (2014-05-14 18:08:35 UTC) #28
darin (slow to review)
Yeah, I don't like stealing such a common method name either. I was thinking that ...
6 years, 7 months ago (2014-05-14 18:17:30 UTC) #29
DaveMoore
There were only two instances of Initialize(). One needed the client and one didn't. Neither ...
6 years, 7 months ago (2014-05-14 18:21:43 UTC) #30
darin (slow to review)
LGTM https://codereview.chromium.org/275363002/diff/160001/mojo/services/view_manager/view_manager_connection.cc File mojo/services/view_manager/view_manager_connection.cc (right): https://codereview.chromium.org/275363002/diff/160001/mojo/services/view_manager/view_manager_connection.cc#newcode90 mojo/services/view_manager/view_manager_connection.cc:90: InterfaceImpl<IViewManager>::SetClient(client); It is this case that makes me ...
6 years, 7 months ago (2014-05-14 20:00:20 UTC) #31
sky
https://codereview.chromium.org/275363002/diff/160001/mojo/services/view_manager/view_manager_connection.cc File mojo/services/view_manager/view_manager_connection.cc (right): https://codereview.chromium.org/275363002/diff/160001/mojo/services/view_manager/view_manager_connection.cc#newcode90 mojo/services/view_manager/view_manager_connection.cc:90: InterfaceImpl<IViewManager>::SetClient(client); On 2014/05/14 20:00:21, darin wrote: > It is ...
6 years, 7 months ago (2014-05-14 20:12:29 UTC) #32
darin (slow to review)
That's why I put the method on ViewManager. (I should have typed IViewManager.) My suggestion ...
6 years, 7 months ago (2014-05-14 20:30:35 UTC) #33
sky
Sorry, I haven't followed the whole thread. Why can't the server send an initial message ...
6 years, 7 months ago (2014-05-14 20:39:10 UTC) #34
darin (slow to review)
It can, but then we need to provide a way for the ViewManager to know ...
6 years, 7 months ago (2014-05-14 21:44:37 UTC) #35
DaveMoore
Add OnConnectionEstablished()
6 years, 7 months ago (2014-05-15 01:53:59 UTC) #36
DaveMoore
Add OnConnectionEstablished()
6 years, 7 months ago (2014-05-15 01:59:02 UTC) #37
DaveMoore
6 years, 7 months ago (2014-05-15 01:59:38 UTC) #38
darin (slow to review)
https://codereview.chromium.org/275363002/diff/200001/mojo/public/cpp/bindings/lib/interface_impl_internal.h File mojo/public/cpp/bindings/lib/interface_impl_internal.h (right): https://codereview.chromium.org/275363002/diff/200001/mojo/public/cpp/bindings/lib/interface_impl_internal.h#newcode15 mojo/public/cpp/bindings/lib/interface_impl_internal.h:15: class InterfaceImplBase : public ErrorHandler { I don't think ...
6 years, 7 months ago (2014-05-15 18:06:20 UTC) #39
darin (slow to review)
Uploaded here w/ these changes applied: https://codereview.chromium.org/284113009
6 years, 7 months ago (2014-05-15 22:26:03 UTC) #40
darin (slow to review)
6 years, 7 months ago (2014-05-16 18:19:39 UTC) #41
On 2014/05/15 22:26:03, darin wrote:
> Uploaded here w/ these changes applied:
> https://codereview.chromium.org/284113009

Committed here:
https://src.chromium.org/viewvc/chrome?revision=270945&view=revision

Powered by Google App Engine
This is Rietveld 408576698