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

Issue 2062333002: mojo::Callback -> base::Callback (Closed)

Created:
4 years, 6 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, ben+mojo_chromium.org, blink-reviews, chasej+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, kalyank, mcasas+watch+vc_chromium.org, media-router+watch_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-geolocation_chromium.org, mlamouri+watch-content_chromium.org, Michael van Ouwerkerk, nasko+codewatch_chromium.org, Peter Beverloo, posciak+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, sadrul, timvolodine, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mojo::Callback -> base::Callback Replaces mojo::Callback with base::Callback. This means updating several callback sites for the following reasons: - The mojo::Callback<T>::Runnable interface no longer exists - C++11 lambas may no longer be bound implicitly - Repsonse callback signatures must now match the generated signature exactly (i.e. no implicit conversion from const mojo::String& or const std::string& to a by-value mojo::String) - Null mojo::Callbacks could be Run without crashing; this is no longer true. - It's base::Callback::Reset instead of mojo::Callback::reset mojo::Callback and mojo::Closure are left in place as aliases for base::Callback and base::Closure until all references can be updated. BUG=620840 TBR=ben@chromium.org for general/toplevel TBR=xhwang@chromium.org for media related changes Committed: https://crrev.com/c383dde80197ffd21e23d89eddf0b7a4d819a3de Cr-Commit-Position: refs/heads/master@{#400598}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : fix Chrome OS and Android #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Total comments: 7

Patch Set 6 : . #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1006 lines, -1317 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc View 1 2 1 chunk +21 lines, -15 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/usb_chooser_dialog_android.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_render_thread_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 1 chunk +19 lines, -19 lines 0 comments Download
M components/arc/arc_bridge_service.cc View 1 2 19 chunks +19 lines, -19 lines 0 comments Download
M components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc View 1 2 3 4 5 chunks +38 lines, -18 lines 0 comments Download
M components/filesystem/files_test_base.h View 2 chunks +16 lines, -13 lines 0 comments Download
M components/leveldb/leveldb_service_unittest.cc View 1 chunk +11 lines, -7 lines 0 comments Download
M components/leveldb/remote_iterator_unittest.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M components/mus/gles2/command_buffer_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M components/mus/public/cpp/lib/command_buffer_client_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/mus/public/cpp/lib/window_tree_client.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M components/safe_json/safe_json_parser_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/safe_json/safe_json_parser_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/battery_status/battery_monitor_integration_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/geolocation/geolocation_service_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_browsertest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/child/background_sync/background_sync_provider.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/background_sync/background_sync_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/permissions/permission_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M content/child/permissions/permission_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M device/battery/battery_monitor_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/usb/mojo/device_manager_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mash/app_driver/app_driver.h View 1 chunk +1 line, -2 lines 0 comments Download
M mash/app_driver/app_driver.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/capture/video/scoped_result_callback.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_cdm_promise.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_provision_fetcher.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_provision_fetcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/common/common_custom_types_unittest.cc View 1 2 7 chunks +43 lines, -24 lines 0 comments Download
M mojo/mojo_edk_tests.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M mojo/mojo_public.gypi View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 2 3 2 chunks +2 lines, -6 lines 0 comments Download
M mojo/public/cpp/bindings/associated_binding.h View 5 chunks +10 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/binding_set.h View 5 chunks +9 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/callback.h View 1 chunk +3 lines, -145 lines 0 comments Download
M mojo/public/cpp/bindings/interface_ptr_set.h View 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h View 3 chunks +11 lines, -9 lines 0 comments Download
M mojo/public/cpp/bindings/lib/binding_state.h View 1 2 7 chunks +18 lines, -5 lines 0 comments Download
D mojo/public/cpp/bindings/lib/callback_internal.h View 1 chunk +0 lines, -53 lines 0 comments Download
M mojo/public/cpp/bindings/lib/connector.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_proxy.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_endpoint_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/interface_ptr_state.h View 1 2 5 chunks +23 lines, -18 lines 0 comments Download
M mojo/public/cpp/bindings/lib/multiplex_router.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/router.cc View 2 chunks +4 lines, -2 lines 0 comments Download
D mojo/public/cpp/bindings/lib/shared_data.h View 1 chunk +0 lines, -112 lines 0 comments Download
D mojo/public/cpp/bindings/lib/shared_ptr.h View 1 chunk +0 lines, -58 lines 0 comments Download
M mojo/public/cpp/bindings/strong_binding.h View 1 2 3 4 5 3 chunks +9 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/associated_interface_unittest.cc View 8 chunks +54 lines, -31 lines 0 comments Download
M mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc View 9 chunks +84 lines, -60 lines 0 comments Download
M mojo/public/cpp/bindings/tests/binding_callback_unittest.cc View 9 chunks +19 lines, -24 lines 0 comments Download
M mojo/public/cpp/bindings/tests/binding_unittest.cc View 15 chunks +45 lines, -56 lines 0 comments Download
M mojo/public/cpp/bindings/tests/bindings_perftest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
D mojo/public/cpp/bindings/tests/callback_unittest.cc View 1 chunk +0 lines, -196 lines 0 comments Download
M mojo/public/cpp/bindings/tests/connector_unittest.cc View 8 chunks +32 lines, -21 lines 0 comments Download
M mojo/public/cpp/bindings/tests/e2e_perftest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 1 2 3 4 5 6 chunks +58 lines, -75 lines 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 8 chunks +27 lines, -40 lines 0 comments Download
M mojo/public/cpp/bindings/tests/multiplex_router_unittest.cc View 4 chunks +10 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/tests/pickle_unittest.cc View 5 chunks +53 lines, -40 lines 0 comments Download
M mojo/public/cpp/bindings/tests/request_response_unittest.cc View 5 chunks +29 lines, -47 lines 0 comments Download
M mojo/public/cpp/bindings/tests/router_unittest.cc View 3 chunks +10 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_traits_unittest.cc View 1 2 3 4 5 5 chunks +38 lines, -21 lines 0 comments Download
M mojo/public/cpp/bindings/tests/sync_method_unittest.cc View 9 chunks +96 lines, -42 lines 0 comments Download
M mojo/public/cpp/bindings/tests/union_unittest.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/wtf_types_unittest.cc View 1 2 3 4 5 5 chunks +30 lines, -13 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 1 2 3 chunks +39 lines, -19 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl View 1 chunk +11 lines, -0 lines 0 comments Download
M services/shell/background/tests/background_shell_unittest.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M services/shell/public/cpp/lib/connection_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M services/shell/public/cpp/lib/connection_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M services/shell/public/cpp/lib/shell_connection.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/shell/shell.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M services/shell/tests/connect/connect_test_app.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M services/shell/tests/connect/connect_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (13 generated)
Ken Rockot(use gerrit already)
Yuzhu could you please take a look at mojo/public? +lhchavez for components/arc and chrome/browser/chromeos/arc
4 years, 6 months ago (2016-06-16 20:21:32 UTC) #4
Luis Héctor Chávez
components/arc and chrome/browser/chromeos/arc lgtm
4 years, 6 months ago (2016-06-16 20:28:00 UTC) #5
yzshen1
mojo/public LGTM https://codereview.chromium.org/2062333002/diff/80001/mojo/public/cpp/bindings/callback.h File mojo/public/cpp/bindings/callback.h (right): https://codereview.chromium.org/2062333002/diff/80001/mojo/public/cpp/bindings/callback.h#newcode13 mojo/public/cpp/bindings/callback.h:13: using Callback = base::Callback<Sig>; Woohoo! https://codereview.chromium.org/2062333002/diff/80001/mojo/public/cpp/bindings/strong_binding.h File ...
4 years, 6 months ago (2016-06-18 00:01:18 UTC) #7
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2062333002/diff/80001/mojo/public/cpp/bindings/strong_binding.h File mojo/public/cpp/bindings/strong_binding.h (right): https://codereview.chromium.org/2062333002/diff/80001/mojo/public/cpp/bindings/strong_binding.h#newcode112 mojo/public/cpp/bindings/strong_binding.h:112: RunConnectionErrorHandler(); On 2016/06/18 at 00:01:18, yzshen1 wrote: > nit: ...
4 years, 6 months ago (2016-06-18 03:24:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062333002/100001
4 years, 6 months ago (2016-06-18 03:24:30 UTC) #11
haraken
WebKit LGTM
4 years, 6 months ago (2016-06-18 03:25:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/202973)
4 years, 6 months ago (2016-06-18 03:33:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062333002/120001
4 years, 6 months ago (2016-06-18 19:36:08 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-18 20:16:06 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-18 20:18:29 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c383dde80197ffd21e23d89eddf0b7a4d819a3de
Cr-Commit-Position: refs/heads/master@{#400598}

Powered by Google App Engine
This is Rietveld 408576698