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

Issue 2610173003: Add RegisterService, split out of Connect(). (Closed)

Created:
3 years, 11 months ago by Ben Goodger (Google)
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add RegisterService, split out of Connect(). - Eliminates client lib's ConnectParams struct as this is no longer needed. - Converts call sites. - In Service Manager, RegisterService just calls Connect() with some empty values. The codepath is mostly the same. Note that when the ClientProcessConnection is passed now OnGotResolvedName returns early prior to completing the connection, as RegisterService is not a "connect" action, just a "start" one. R=rockot@chromium.org,tsepez@chromium.org Review-Url: https://codereview.chromium.org/2610173003 Cr-Commit-Position: refs/heads/master@{#442114} Committed: https://chromium.googlesource.com/chromium/src/+/e6a9f01dbfbc97e63b90de01b329a1b1f8fe122f

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -203 lines) Patch
M chrome/test/base/mojo_test_connector.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -9 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M content/common/service_manager/child_connection.cc View 1 2 3 4 5 1 chunk +6 lines, -7 lines 0 comments Download
M services/service_manager/connect_params.h View 1 2 3 3 chunks +16 lines, -6 lines 0 comments Download
M services/service_manager/public/cpp/connector.h View 1 2 3 4 5 1 chunk +19 lines, -53 lines 0 comments Download
M services/service_manager/public/cpp/lib/connector_impl.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M services/service_manager/public/cpp/lib/connector_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -40 lines 0 comments Download
M services/service_manager/public/interfaces/connector.mojom View 1 2 3 4 5 3 chunks +24 lines, -25 lines 0 comments Download
M services/service_manager/service_manager.cc View 1 2 3 4 5 10 chunks +51 lines, -30 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_app.cc View 1 chunk +1 line, -2 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_package.cc View 1 chunk +1 line, -2 lines 0 comments Download
M services/service_manager/tests/connect/connect_unittest.cc View 4 chunks +9 lines, -12 lines 0 comments Download
M services/service_manager/tests/service_manager/service_manager_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M services/service_manager/tests/util.h View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/util.cc View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/ServiceConnector.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 52 (39 generated)
Ben Goodger (Google)
3 years, 11 months ago (2017-01-05 20:13:47 UTC) #6
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2610173003/diff/40001/services/service_manager/public/interfaces/connector.mojom File services/service_manager/public/interfaces/connector.mojom (right): https://codereview.chromium.org/2610173003/diff/40001/services/service_manager/public/interfaces/connector.mojom#newcode92 services/service_manager/public/interfaces/connector.mojom:92: RegisterService(Identity name, nit: I think RegisterInstance might be ...
3 years, 11 months ago (2017-01-05 20:31:48 UTC) #8
Ben Goodger (Google)
On 2017/01/05 20:31:48, Ken Rockot wrote: > lgtm > > https://codereview.chromium.org/2610173003/diff/40001/services/service_manager/public/interfaces/connector.mojom > File services/service_manager/public/interfaces/connector.mojom (right): ...
3 years, 11 months ago (2017-01-05 22:31:19 UTC) #13
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/2610173003/170001
3 years, 11 months ago (2017-01-06 19:18:13 UTC) #32
Ben Goodger (Google)
Tom: this is moving a parameter to Connect() into a separate function call.
3 years, 11 months ago (2017-01-06 19:22:06 UTC) #35
Tom Sepez
mojom LGTM
3 years, 11 months ago (2017-01-06 19:33:35 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/298441)
3 years, 11 months ago (2017-01-06 19:57:45 UTC) #38
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/2610173003/190001
3 years, 11 months ago (2017-01-06 20:41:30 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/132872)
3 years, 11 months ago (2017-01-06 21:02:30 UTC) #43
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/2610173003/190001
3 years, 11 months ago (2017-01-06 21:32:29 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/132929)
3 years, 11 months ago (2017-01-06 21:52:13 UTC) #47
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/2610173003/190001
3 years, 11 months ago (2017-01-06 23:01:58 UTC) #49
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 00:44:17 UTC) #52
Message was sent while issue was closed.
Committed patchset #11 (id:190001) as
https://chromium.googlesource.com/chromium/src/+/e6a9f01dbfbc97e63b90de01b329...

Powered by Google App Engine
This is Rietveld 408576698