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

Issue 2440903002: Make "all user" services work when packaged. (Closed)

Created:
4 years, 2 months ago by Jay Civelli
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure an "all user" service works when packaged as part of another service: - Use the empty string as instance id when none provided instead of the service name. - Disable the tracing service by default. - changed the ServiceManagerListener.OnServiceStarted notification so it is fired when the service has replied (instead of when the process is created) - introduced a ServiceManagerListener notification for when a service was not started - added a new instance_per_child flag to service_manager to control whether a new process should be created when starting a new packaged service BUG=658368 TEST=ServiceManagerTest.CreatePackagedSingletonInstance Committed: https://crrev.com/8dcec2d180e56dcfe84506daac08ef37d7d57a24 Cr-Commit-Position: refs/heads/master@{#428098}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Fixed other tests #

Total comments: 11

Patch Set 4 : Addressed comments #

Patch Set 5 : Fix the ServiceManagerTest.CreateInstance #

Patch Set 6 : Fixed Mash browser test. #

Patch Set 7 : Synced. #

Patch Set 8 : Clean-up #

Patch Set 9 : Clean-up. #

Total comments: 4

Patch Set 10 : Addressed latest comments and synced. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -75 lines) Patch
M chrome/app/mash/chrome_mash_manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/mash_browser_tests_manifest.json View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M mash/task_viewer/task_viewer.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M services/catalog/entry.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/lib/identity.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/public/interfaces/resolver.mojom View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M services/service_manager/public/interfaces/service_manager.mojom View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M services/service_manager/service_manager.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M services/service_manager/service_manager.cc View 1 2 3 4 5 6 7 14 chunks +59 lines, -9 lines 0 comments Download
M services/service_manager/standalone/context.cc View 1 chunk +29 lines, -25 lines 0 comments Download
M services/service_manager/switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/service_manager/switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M services/service_manager/tests/connect/connect_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -26 lines 0 comments Download
M services/service_manager/tests/lifecycle/lifecycle_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M services/service_manager/tests/service_manager/BUILD.gn View 2 chunks +41 lines, -0 lines 0 comments Download
A services/service_manager/tests/service_manager/embedder.cc View 1 2 3 4 5 6 1 chunk +89 lines, -0 lines 0 comments Download
A + services/service_manager/tests/service_manager/embedder_manifest.json View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M services/service_manager/tests/service_manager/service_manager_unittest.cc View 1 2 3 4 5 6 11 chunks +112 lines, -9 lines 0 comments Download
M services/service_manager/tests/service_manager/service_manager_unittest_manifest.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
A services/service_manager/tests/service_manager/singleton_manifest.json View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (31 generated)
Jay Civelli
https://codereview.chromium.org/2440903002/diff/40001/services/service_manager/tests/connect/connect_unittest.cc File services/service_manager/tests/connect/connect_unittest.cc (right): https://codereview.chromium.org/2440903002/diff/40001/services/service_manager/tests/connect/connect_unittest.cc#newcode211 services/service_manager/tests/connect/connect_unittest.cc:211: // When both the unresolved and resolved instance names ...
4 years, 2 months ago (2016-10-21 19:19:23 UTC) #4
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2440903002/diff/40001/services/service_manager/service_manager.cc File services/service_manager/service_manager.cc (right): https://codereview.chromium.org/2440903002/diff/40001/services/service_manager/service_manager.cc#newcode270 services/service_manager/service_manager.cc:270: // This connection was not started yet. nit: ...
4 years, 2 months ago (2016-10-21 19:52:33 UTC) #7
Jay Civelli
https://codereview.chromium.org/2440903002/diff/40001/services/service_manager/service_manager.cc File services/service_manager/service_manager.cc (right): https://codereview.chromium.org/2440903002/diff/40001/services/service_manager/service_manager.cc#newcode270 services/service_manager/service_manager.cc:270: // This connection was not started yet. On 2016/10/21 ...
4 years, 2 months ago (2016-10-21 20:48:33 UTC) #10
Jay Civelli
Adding @ben for OWNER review of mash/task_viewer/task_viewer.cc
4 years, 2 months ago (2016-10-21 22:40:15 UTC) #16
Ben Goodger (Google)
lgtm
4 years, 2 months ago (2016-10-23 22:51:05 UTC) #21
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/2440903002/80001
4 years, 1 month ago (2016-10-24 15:49:32 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/287841)
4 years, 1 month ago (2016-10-24 16:17:09 UTC) #26
Jay Civelli
Adding @tsepez for IPC security OWNER review for change to services/service_manager/public/interfaces/service_manager.mojom. Thanks.
4 years, 1 month ago (2016-10-24 16:25:02 UTC) #28
Tom Sepez
lgtm
4 years, 1 month ago (2016-10-24 20:02:15 UTC) #29
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/2440903002/80001
4 years, 1 month ago (2016-10-24 20:06:51 UTC) #31
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/258991)
4 years, 1 month ago (2016-10-24 21:46:53 UTC) #33
Jay Civelli
Fixed the Mash browser test. @rockot could you take a look? Thanks.
4 years, 1 month ago (2016-10-26 21:01:20 UTC) #36
Ken Rockot(use gerrit already)
LGTM! https://codereview.chromium.org/2440903002/diff/160001/chrome/test/base/mash_browser_tests_manifest.json File chrome/test/base/mash_browser_tests_manifest.json (right): https://codereview.chromium.org/2440903002/diff/160001/chrome/test/base/mash_browser_tests_manifest.json#newcode13 chrome/test/base/mash_browser_tests_manifest.json:13: "service:service_manager": [ Please also add this to chrome/app/mash/chrome_mash_manifest.json, ...
4 years, 1 month ago (2016-10-27 17:01:29 UTC) #39
Jay Civelli
https://codereview.chromium.org/2440903002/diff/160001/chrome/test/base/mash_browser_tests_manifest.json File chrome/test/base/mash_browser_tests_manifest.json (right): https://codereview.chromium.org/2440903002/diff/160001/chrome/test/base/mash_browser_tests_manifest.json#newcode13 chrome/test/base/mash_browser_tests_manifest.json:13: "service:service_manager": [ On 2016/10/27 17:01:29, Ken Rockot wrote: > ...
4 years, 1 month ago (2016-10-27 17:43:28 UTC) #40
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/2440903002/180001
4 years, 1 month ago (2016-10-27 17:44:20 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-10-27 18:54:48 UTC) #46
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 19:02:04 UTC) #48
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8dcec2d180e56dcfe84506daac08ef37d7d57a24
Cr-Commit-Position: refs/heads/master@{#428098}

Powered by Google App Engine
This is Rietveld 408576698