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

Issue 2476063002: Service Manager: Rework Service and ServiceContext lifetime (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, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, rjkroege, sadrul, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Service Manager: Rework Service and ServiceContext lifetime Changes ServiceContext to always own a Service instance. Changes Service::OnStart() to only take a ServiceContext* which is guaranteed to outlive the Service. Updates all the code affected by this change, including content's EmbeddedServiceRunner which will now always create a new Service instance per incoming ServiceRequest. Also fixes a bunch of IWYU violations. BUG=654986 Committed: https://crrev.com/b92eed3a5cd6cde768bd32a74487c45094bccbdf Cr-Commit-Position: refs/heads/master@{#430131}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+919 lines, -618 lines) Patch
M ash/autoclick/mus/autoclick_application.h View 2 chunks +3 lines, -1 line 0 comments Download
M ash/autoclick/mus/autoclick_application.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M ash/mus/window_manager_application.h View 2 chunks +7 lines, -1 line 0 comments Download
M ash/mus/window_manager_application.cc View 3 chunks +11 lines, -9 lines 0 comments Download
M ash/touch_hud/mus/touch_hud_application.h View 2 chunks +2 lines, -1 line 0 comments Download
M ash/touch_hud/mus/touch_hud_application.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/app/mash/mash_runner.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/app/mash/mash_runner.cc View 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/mash_browser_tests_main.cc View 2 chunks +12 lines, -12 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 2 chunks +4 lines, -2 lines 0 comments Download
M components/font_service/font_service_app.h View 1 chunk +1 line, -1 line 0 comments Download
M components/font_service/font_service_app.cc View 2 chunks +4 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 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/service_manager/embedded_service_runner.h View 1 chunk +10 lines, -17 lines 0 comments Download
M content/common/service_manager/embedded_service_runner.cc View 6 chunks +80 lines, -67 lines 0 comments Download
M content/common/service_manager/service_manager_connection_impl.cc View 4 chunks +33 lines, -3 lines 0 comments Download
M content/public/common/service_info.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/test/test_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/mus/render_widget_window_tree_client_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mash/browser/browser.h View 1 4 chunks +8 lines, -1 line 0 comments Download
M mash/browser/browser.cc View 1 2 chunks +10 lines, -7 lines 0 comments Download
M mash/catalog_viewer/catalog_viewer.h View 3 chunks +8 lines, -1 line 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 3 chunks +10 lines, -7 lines 0 comments Download
M mash/example/views_examples/views_examples.cc View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.h View 1 3 chunks +8 lines, -1 line 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 3 chunks +9 lines, -6 lines 0 comments Download
M mash/init/init.h View 1 3 chunks +6 lines, -2 lines 0 comments Download
M mash/init/init.cc View 1 4 chunks +8 lines, -5 lines 0 comments Download
M mash/login/login.cc View 1 2 3 chunks +17 lines, -11 lines 0 comments Download
M mash/package/mash_packaged_service.h View 2 chunks +5 lines, -1 line 0 comments Download
M mash/package/mash_packaged_service.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M mash/quick_launch/quick_launch.h View 3 chunks +8 lines, -1 line 0 comments Download
M mash/quick_launch/quick_launch.cc View 3 chunks +11 lines, -8 lines 0 comments Download
M mash/screenlock/screenlock.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M mash/screenlock/screenlock.cc View 1 2 3 chunks +15 lines, -8 lines 0 comments Download
M mash/session/session.h View 3 chunks +5 lines, -2 lines 0 comments Download
M mash/session/session.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M mash/task_viewer/task_viewer.h View 3 chunks +8 lines, -1 line 0 comments Download
M mash/task_viewer/task_viewer.cc View 4 chunks +13 lines, -8 lines 0 comments Download
M mash/webtest/webtest.h View 1 3 chunks +8 lines, -1 line 0 comments Download
M mash/webtest/webtest.cc View 1 3 chunks +10 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 2 chunks +2 lines, -1 line 0 comments Download
M services/catalog/catalog.h View 4 chunks +5 lines, -7 lines 0 comments Download
M services/catalog/catalog.cc View 5 chunks +25 lines, -11 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 2 chunks +4 lines, -2 lines 0 comments Download
M services/navigation/navigation.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M services/navigation/navigation_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M services/navigation/view_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M services/service_manager/background/tests/background_service_manager_unittest.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M services/service_manager/public/cpp/interface_registry.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/service_manager/public/cpp/lib/interface_registry.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/service_manager/public/cpp/lib/service.cc View 1 chunk +1 line, -22 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_context.cc View 5 chunks +40 lines, -17 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_runner.cc View 4 chunks +5 lines, -10 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_test.cc View 5 chunks +19 lines, -10 lines 0 comments Download
M services/service_manager/public/cpp/service.h View 1 chunk +31 lines, -38 lines 0 comments Download
M services/service_manager/public/cpp/service_context.h View 4 chunks +60 lines, -25 lines 0 comments Download
M services/service_manager/public/cpp/service_runner.h View 1 chunk +1 line, -6 lines 0 comments Download
M services/service_manager/public/cpp/service_test.h View 4 chunks +5 lines, -5 lines 0 comments Download
M services/service_manager/runner/child/test_native_main.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/service_manager/runner/child/test_native_main.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M services/service_manager/service_manager.h View 4 chunks +4 lines, -7 lines 0 comments Download
M services/service_manager/service_manager.cc View 4 chunks +35 lines, -21 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_app.cc View 8 chunks +11 lines, -10 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_class_app.cc View 4 chunks +7 lines, -5 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_driver.cc View 4 chunks +12 lines, -4 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_exe.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_package.cc View 8 chunks +14 lines, -12 lines 0 comments Download
M services/service_manager/tests/connect/connect_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M services/service_manager/tests/lifecycle/app.cc View 1 chunk +1 line, -3 lines 0 comments Download
M services/service_manager/tests/lifecycle/app_client.h View 2 chunks +10 lines, -16 lines 0 comments Download
M services/service_manager/tests/lifecycle/app_client.cc View 3 chunks +9 lines, -7 lines 0 comments Download
M services/service_manager/tests/lifecycle/lifecycle_exe.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M services/service_manager/tests/lifecycle/lifecycle_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M services/service_manager/tests/lifecycle/package.cc View 6 chunks +75 lines, -47 lines 0 comments Download
M services/service_manager/tests/lifecycle/parent.cc View 4 chunks +9 lines, -2 lines 0 comments Download
M services/service_manager/tests/service_manager/driver.cc View 5 chunks +6 lines, -5 lines 0 comments Download
M services/service_manager/tests/service_manager/embedder.cc View 5 chunks +13 lines, -12 lines 0 comments Download
M services/service_manager/tests/service_manager/service_manager_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M services/service_manager/tests/service_manager/target.cc View 3 chunks +12 lines, -7 lines 0 comments Download
M services/service_manager/tests/shutdown/shutdown_client_app.cc View 4 chunks +8 lines, -1 line 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 2 chunks +4 lines, -3 lines 0 comments Download
M services/ui/ime/test_ime_driver/test_ime_application.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/ime/test_ime_driver/test_ime_application.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M services/ui/public/cpp/tests/window_server_test_base.cc View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/service.cc View 5 chunks +7 lines, -5 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_service.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M services/video_capture/video_capture_service.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/views_aura_mus_test_suite.cc View 4 chunks +13 lines, -11 lines 0 comments Download
M ui/views/mus/views_mus_test_suite.cc View 4 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (19 generated)
Ken Rockot(use gerrit already)
wheeeee
4 years, 1 month ago (2016-11-05 00:02:40 UTC) #4
Ben Goodger (Google)
lgtm
4 years, 1 month ago (2016-11-05 00:33:46 UTC) #7
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/2476063002/60001
4 years, 1 month ago (2016-11-05 01:56:10 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-05 02:45:25 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 02:47:22 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b92eed3a5cd6cde768bd32a74487c45094bccbdf
Cr-Commit-Position: refs/heads/master@{#430131}

Powered by Google App Engine
This is Rietveld 408576698