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

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)

Created:
3 years, 7 months ago by Ben Goodger (Google)
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, asanka, chfremer+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, kalyank, mlamouri+watch-content_chromium.org, mmenke, nasko+codewatch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, Randy Smith (Not in Mondays), rjkroege, sadrul, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ServiceInfo with BindSourceInfo. ServiceInfo used to carry manifest capability data. We don't need to pass this to clients now that enforcement is done in the service manager, so I'd like to remove it before anyone discovers they can use it for something odd. . Service.mojom:OnStart now takes an identity, since we don't need any additional metadata during startup. . Service.mojom:OnBindInterface now takes a new struct BindSourceInfo. This is the remote identity + an array of capability names. This array is populated with the names of all the capabilities that the remote requires of the target. The target can use this to modify behavior based on the presence of one of these bits. No one uses this yet except for the service manager itself (e.g. all_users, client_process, etc.) R=tsepez@chromium.org,rockot@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2850743004 Cr-Commit-Position: refs/heads/master@{#468553} Committed: https://chromium.googlesource.com/chromium/src/+/2c36828dfc0bef3e7792bdd6e13fdb199b5d97fd

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -372 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 +1 line, -1 line 0 comments Download
M ash/mus/window_manager_application.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/window_manager_application.cc View 1 chunk +1 line, -1 line 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 +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/active_profile_pref_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/active_profile_pref_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/ash_util.cc View 2 chunks +2 lines, -2 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 +1 line, -1 line 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 1 chunk +1 line, -1 line 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 +1 line, -1 line 0 comments Download
M components/nacl/common/nacl_service.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/dom_storage/local_storage_context_mojo_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 3 chunks +0 lines, -29 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/child/child_thread_impl.h View 1 3 chunks +6 lines, -8 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 3 chunks +4 lines, -12 lines 0 comments Download
M content/common/service_manager/service_manager_connection_impl.h View 1 2 chunks +5 lines, -7 lines 0 comments Download
M content/common/service_manager/service_manager_connection_impl.cc View 1 2 3 4 5 6 7 chunks +7 lines, -33 lines 0 comments Download
M content/common/service_manager/service_manager_connection_impl_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/network/network_service.h View 1 chunk +1 line, -1 line 0 comments Download
M content/network/network_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/connection_filter.h View 2 chunks +6 lines, -5 lines 0 comments Download
M content/public/common/service_manager_connection.h View 1 2 chunks +4 lines, -6 lines 0 comments Download
M content/public/common/simple_connection_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/simple_connection_filter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/test/test_service.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/test_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/mus/render_widget_window_tree_client_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M mash/browser/browser.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/browser/browser.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M mash/catalog_viewer/catalog_viewer.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/example/views_examples/views_examples.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/quick_launch/quick_launch.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/quick_launch/quick_launch.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/task_viewer/task_viewer.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/task_viewer/task_viewer.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/webtest/webtest.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/webtest/webtest.cc View 1 chunk +4 lines, -3 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 +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/versioning_test_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/catalog/catalog.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/data_decoder/data_decoder_service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/data_decoder/data_decoder_service.cc View 1 chunk +1 line, -1 line 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 2 chunks +2 lines, -2 lines 0 comments Download
M services/device/device_service_test_base.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 +1 line, -1 line 0 comments Download
M services/identity/identity_service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/identity/identity_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/navigation/navigation.h View 1 chunk +1 line, -1 line 0 comments Download
M services/navigation/navigation.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/preferences/pref_service_factory_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M services/preferences/pref_store_manager_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M services/preferences/pref_store_manager_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/service_manager/background/tests/test_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/public/cpp/BUILD.gn View 3 chunks +2 lines, -2 lines 0 comments Download
M services/service_manager/public/cpp/OWNERS View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/bind_source_info.h View 1 chunk +31 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/bind_source_info.typemap View 1 chunk +11 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/bind_source_info_struct_traits.h View 1 chunk +33 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/lib/bind_source_info.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/lib/service.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_context.cc View 1 chunk +3 lines, -3 lines 0 comments Download
D services/service_manager/public/cpp/lib/service_info.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/public/cpp/service.h View 3 chunks +8 lines, -8 lines 0 comments Download
M services/service_manager/public/cpp/service_context.h View 3 chunks +7 lines, -10 lines 0 comments Download
D services/service_manager/public/cpp/service_info.h View 1 chunk +0 lines, -30 lines 0 comments Download
D services/service_manager/public/cpp/service_info.typemap View 1 chunk +0 lines, -11 lines 0 comments Download
D services/service_manager/public/cpp/service_info_struct_traits.h View 1 chunk +0 lines, -33 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/public/cpp/typemaps.gni View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/public/interfaces/service.mojom View 4 chunks +11 lines, -13 lines 0 comments Download
M services/service_manager/service_manager.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M services/service_manager/tests/connect/connect_test_app.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/connect/connect_test_class_app.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/connect/connect_test_exe.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/connect/connect_test_package.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/service_manager/tests/connect/connect_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/lifecycle/app_client.h View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/lifecycle/app_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/lifecycle/package.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/service_manager/tests/lifecycle/parent.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/service_manager/embedder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/service_manager/tests/service_manager/service_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/service_manager/target.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/shutdown/shutdown_client_app.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/shutdown/shutdown_service_app.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/shape_detection/shape_detection_service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/shape_detection/shape_detection_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/tracing/service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/tracing/service.cc View 2 chunks +5 lines, -4 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 1 chunk +4 lines, -3 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_server_service_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_server_service_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_server_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_server_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/device_factory_provider_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/service_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/service_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/views_mus_test_suite.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 54 (42 generated)
Ben Goodger (Google)
3 years, 7 months ago (2017-05-01 16:04:42 UTC) #25
Ken Rockot(use gerrit already)
lgtm
3 years, 7 months ago (2017-05-01 16:07:59 UTC) #26
Tom Sepez
lgtm
3 years, 7 months ago (2017-05-01 17:09:37 UTC) #31
commit-bot: I haz the power
This CL has an open dependency (Issue 2847743003 Patch 320001). Please resolve the dependency and ...
3 years, 7 months ago (2017-05-01 17:10:30 UTC) #35
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/2850743004/100001
3 years, 7 months ago (2017-05-01 23:50:26 UTC) #37
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/424851)
3 years, 7 months ago (2017-05-02 00:00:47 UTC) #39
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/2850743004/120001
3 years, 7 months ago (2017-05-02 01:41:47 UTC) #42
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/424953)
3 years, 7 months ago (2017-05-02 01:52:15 UTC) #44
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/2850743004/140001
3 years, 7 months ago (2017-05-02 02:11:34 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/259750)
3 years, 7 months ago (2017-05-02 02:47:41 UTC) #49
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/2850743004/140001
3 years, 7 months ago (2017-05-02 03:03:55 UTC) #51
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 04:10:35 UTC) #54
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/2c36828dfc0bef3e7792bdd6e13f...

Powered by Google App Engine
This is Rietveld 408576698