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

Issue 2592623002: mojo:: Introduce InterfaceRequest ctor that takes in InterfacePtr* (Closed)

Created:
4 years ago by blundell
Modified:
4 years ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, nasko+codewatch_chromium.org, yzshen+watch_chromium.org, apacible+watch_chromium.org, miu+watch_chromium.org, chromoting-reviews_chromium.org, jam, abarth-chromium, darin-cc_chromium.org, kalyank, xjz+watch_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, timvolodine, feature-media-reviews_chromium.org, mlamouri+watch-sensors_chromium.org, piman+watch_chromium.org, gcasto+watchlist_chromium.org, rjkroege, tfarina, Aaron Boodman, riju_, darin (slow to review), erickung+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo: Introduce InterfaceRequest ctor that takes in InterfacePtr* In https://groups.google.com/a/chromium.org/forum/#!topic/chromium-mojo/PUDEadGMijM, we decided to introduce an InterfaceRequest constructor that takes in an InterfacePtr* and binds to it on a new pipe (i.e., the same functionality as mojo::MakeRequest(InterfacePtr*)). The primary use case is to replace lines like: FooRequest request = mojo::MakeRequest(&foo_ptr); with: FooRequest request(&foo_ptr); This CL does the following: (1) Introduces the new constructor. (2) Changes mojo::MakeRequest(InterfacePtr*) to be implemented via this constructor. (3) Performs the above-mentioned conversion across the codebase. Note that it is not possible to use "auto" with this constructor; replacing FooRequest with auto in the above construction will cause the compiler to infer the type to be FooPtr*. A followup will make a similar change to AssociatedInterfaceRequest. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation TBR=darin Committed: https://crrev.com/c17a15dfa5b357271cd283523a868688415ef919 Cr-Commit-Position: refs/heads/master@{#440084}

Patch Set 1 #

Patch Set 2 : Minor fix #

Total comments: 2

Patch Set 3 : Rebase + response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -63 lines) Patch
M chrome/browser/importer/external_process_importer_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/task_manager/providers/child_process_task.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/gpu/gpu_arc_video_service.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/exo/surface.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/leveldb/leveldb_mojo_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/browser_context.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/service_manager/service_manager_context.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/service_manager/child_connection.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/utility_process_mojo_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/device_sensors/device_sensor_event_pump.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M mash/task_viewer/task_viewer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M mash/webtest/webtest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/remoting/fake_remoting_controller.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/remoting/remoting_cdm_factory.cc View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/public/cpp/bindings/interface_request.h View 1 2 3 chunks +15 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/pickle_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/catalog/catalog.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/navigation/view_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/public/cpp/lib/connector_impl.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M services/service_manager/service_manager.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M services/ui/gpu/gpu_main.cc View 1 chunk +1 line, -2 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 chunk +1 line, -2 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_server.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (15 generated)
blundell
The WebUIMojoEndToEndPing test has been happening flakily on that bot, looking through the recent history ...
4 years ago (2016-12-20 14:23:29 UTC) #8
yzshen1
LGTM with one nit https://codereview.chromium.org/2592623002/diff/20001/mojo/public/cpp/bindings/interface_request.h File mojo/public/cpp/bindings/interface_request.h (right): https://codereview.chromium.org/2592623002/diff/20001/mojo/public/cpp/bindings/interface_request.h#newcode37 mojo/public/cpp/bindings/interface_request.h:37: // MakeRequest(InterfacePtr) below. nit: InterfacePtr ...
4 years ago (2016-12-20 17:37:09 UTC) #9
yzshen1
On 2016/12/20 17:37:09, yzshen1 wrote: > LGTM with one nit > > https://codereview.chromium.org/2592623002/diff/20001/mojo/public/cpp/bindings/interface_request.h > File ...
4 years ago (2016-12-20 19:13:40 UTC) #10
yzshen1
On 2016/12/20 19:13:40, yzshen1 wrote: > On 2016/12/20 17:37:09, yzshen1 wrote: > > LGTM with ...
4 years ago (2016-12-20 20:11:24 UTC) #11
blundell
Thanks! https://codereview.chromium.org/2592623002/diff/20001/mojo/public/cpp/bindings/interface_request.h File mojo/public/cpp/bindings/interface_request.h (right): https://codereview.chromium.org/2592623002/diff/20001/mojo/public/cpp/bindings/interface_request.h#newcode37 mojo/public/cpp/bindings/interface_request.h:37: // MakeRequest(InterfacePtr) below. On 2016/12/20 17:37:09, yzshen1 wrote: ...
4 years ago (2016-12-21 11:51:02 UTC) #13
blundell
TBR=darin for everything outside //mojo
4 years ago (2016-12-21 11:52:05 UTC) #16
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/2592623002/40001
4 years ago (2016-12-21 11:52:26 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-21 13:52:42 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-21 13:54:52 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c17a15dfa5b357271cd283523a868688415ef919
Cr-Commit-Position: refs/heads/master@{#440084}

Powered by Google App Engine
This is Rietveld 408576698