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

Issue 2487573002: Service Manager: Remove ServiceContext* arg from Service::OnStart() (Closed)

Created:
4 years, 1 month ago by Ken Rockot(use gerrit already)
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, kalyank, qsr+mojo_chromium.org, rjkroege, sadrul, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Service Manager: Remove ServiceContext* arg from Service::OnStart() This restores the context() accessor to Service, but now guarantees that ServiceContext always sets the context before invoking OnStart(). This means that all Service implementations are free to safely access context() any time after OnStart() regardless of what service-running mechanism was used to create their ServiceContext. BUG=654986 Committed: https://crrev.com/6d9b6cd9869d3f8385a42b3272edd7f5b3a6ac5e Committed: https://crrev.com/4b5e64d3c7aadaffe9131291fe503a46ea0809d3 Cr-Original-Commit-Position: refs/heads/master@{#431752} Cr-Commit-Position: refs/heads/master@{#431778}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : rebase #

Patch Set 5 : . #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -339 lines) Patch
M ash/autoclick/mus/autoclick_application.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/autoclick/mus/autoclick_application.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/mus/window_manager_application.h View 2 chunks +1 line, -7 lines 0 comments Download
M ash/mus/window_manager_application.cc View 2 chunks +7 lines, -9 lines 0 comments Download
M ash/touch_hud/mus/touch_hud_application.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/touch_hud/mus/touch_hud_application.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/filesystem/file_system_app.h View 1 chunk +1 line, -1 line 0 comments Download
M components/filesystem/file_system_app.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/font_service/font_service_app.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/font_service/font_service_app.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/leveldb/leveldb_app.h View 1 chunk +1 line, -1 line 0 comments Download
M components/leveldb/leveldb_app.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/service_manager/service_manager_connection_impl.cc View 1 2 3 4 3 chunks +3 lines, -31 lines 0 comments Download
M mash/browser/browser.h View 3 chunks +1 line, -7 lines 0 comments Download
M mash/browser/browser.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M mash/catalog_viewer/catalog_viewer.h View 3 chunks +1 line, -7 lines 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M mash/example/views_examples/views_examples.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.h View 1 2 3 3 chunks +1 line, -7 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M mash/init/init.h View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M mash/init/init.cc View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M mash/login/login.cc View 2 chunks +9 lines, -11 lines 0 comments Download
M mash/quick_launch/quick_launch.h View 3 chunks +1 line, -7 lines 0 comments Download
M mash/quick_launch/quick_launch.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M mash/screenlock/screenlock.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/screenlock/screenlock.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M mash/session/session.h View 3 chunks +1 line, -4 lines 0 comments Download
M mash/session/session.cc View 4 chunks +5 lines, -7 lines 0 comments Download
M mash/task_viewer/task_viewer.h View 3 chunks +1 line, -7 lines 0 comments Download
M mash/task_viewer/task_viewer.cc View 3 chunks +6 lines, -8 lines 0 comments Download
M mash/webtest/webtest.h View 3 chunks +1 line, -7 lines 0 comments Download
M mash/webtest/webtest.cc View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download
M media/mojo/services/media_service.h View 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/media_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/device/device_service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/device/device_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/file/file_service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/file/file_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/image_decoder/image_decoder_service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/image_decoder/image_decoder_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/navigation/navigation.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -3 lines 0 comments Download
M services/navigation/navigation.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -5 lines 0 comments Download
M services/service_manager/public/cpp/lib/service.cc View 1 2 3 4 1 chunk +33 lines, -2 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_context.cc View 1 chunk +3 lines, -1 line 0 comments Download
M services/service_manager/public/cpp/lib/service_test.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M services/service_manager/public/cpp/service.h View 1 2 3 4 2 chunks +43 lines, -16 lines 0 comments Download
M services/service_manager/public/cpp/service_test.h View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/connect/connect_test_app.cc View 8 chunks +9 lines, -10 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_class_app.cc View 3 chunks +2 lines, -7 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_exe.cc View 2 chunks +1 line, -6 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_package.cc View 1 2 3 4 8 chunks +10 lines, -39 lines 0 comments Download
M services/service_manager/tests/lifecycle/app_client.h View 2 chunks +1 line, -3 lines 0 comments Download
M services/service_manager/tests/lifecycle/app_client.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M services/service_manager/tests/lifecycle/package.cc View 1 2 4 chunks +2 lines, -9 lines 0 comments Download
M services/service_manager/tests/lifecycle/parent.cc View 3 chunks +1 line, -6 lines 0 comments Download
M services/service_manager/tests/service_manager/target.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M services/service_manager/tests/shutdown/shutdown_client_app.cc View 3 chunks +1 line, -6 lines 0 comments Download
M services/ui/demo/mus_demo.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/demo/mus_demo.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M services/ui/ime/test_ime_driver/test_ime_application.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ime/test_ime_driver/test_ime_application.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/service.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M services/ui/service.cc View 1 2 3 4 5 6 4 chunks +5 lines, -5 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 59 (44 generated)
Ken Rockot(use gerrit already)
churn churn churn - tl;dr rationale: because ServiceContext now owns Service, we can guarantee that ...
4 years, 1 month ago (2016-11-08 01:05:14 UTC) #8
Ben Goodger (Google)
rubber stamp lgtm
4 years, 1 month ago (2016-11-08 01:37:22 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/2487573002/80001
4 years, 1 month ago (2016-11-11 21:11:32 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/333900)
4 years, 1 month ago (2016-11-11 21:14:29 UTC) #27
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/2487573002/100001
4 years, 1 month ago (2016-11-12 00:16:54 UTC) #35
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/302820)
4 years, 1 month ago (2016-11-12 00:27:16 UTC) #37
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/2487573002/120001
4 years, 1 month ago (2016-11-12 02:29:22 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-12 02:35:22 UTC) #45
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/6d9b6cd9869d3f8385a42b3272edd7f5b3a6ac5e Cr-Commit-Position: refs/heads/master@{#431752}
4 years, 1 month ago (2016-11-12 02:37:39 UTC) #47
Ken Rockot(use gerrit already)
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2494303002/ by rockot@chromium.org. ...
4 years, 1 month ago (2016-11-12 02:56:52 UTC) #48
Ken Rockot(use gerrit already)
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2500683002/ by rockot@chromium.org. ...
4 years, 1 month ago (2016-11-12 02:57:04 UTC) #49
findit-for-me
FYI: Findit identified this CL at revision 431752 as the culprit for failures in the ...
4 years, 1 month ago (2016-11-12 03:11:18 UTC) #50
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/2487573002/140001
4 years, 1 month ago (2016-11-12 05:43:40 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-12 07:48:30 UTC) #57
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 07:50:18 UTC) #59
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4b5e64d3c7aadaffe9131291fe503a46ea0809d3
Cr-Commit-Position: refs/heads/master@{#431778}

Powered by Google App Engine
This is Rietveld 408576698