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

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed)

Created:
4 years, 8 months ago by dcheng
Modified:
4 years, 8 months ago
Reviewers:
bbudge, piman
CC:
dcheng, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert //ppapi to use std::unique_ptr BUG=554298 R=bbudge@chromium.org Committed: https://crrev.com/ced9224fbb7866e6ea7e9da221c0b2570008bd55 Cr-Commit-Position: refs/heads/master@{#385591}

Patch Set 1 #

Total comments: 27

Patch Set 2 : address review comments #

Patch Set 3 : more nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -310 lines) Patch
M chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc View 6 chunks +12 lines, -11 lines 0 comments Download
M chrome/renderer/pepper/pepper_helper.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 9 chunks +28 lines, -30 lines 0 comments Download
M content/renderer/pepper/pepper_compositor_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ppapi/host/host_factory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/host/ppapi_host.h View 3 chunks +12 lines, -11 lines 0 comments Download
M ppapi/host/ppapi_host.cc View 5 chunks +9 lines, -7 lines 0 comments Download
M ppapi/nacl_irt/irt_pnacl_translator_compile.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/nacl_irt/irt_pnacl_translator_link.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/nacl_irt/manifest_service.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/nacl_irt/ppapi_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/audio_encoder_resource.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/audio_encoder_resource.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M ppapi/proxy/audio_input_resource.h View 3 chunks +7 lines, -6 lines 0 comments Download
M ppapi/proxy/camera_capabilities_resource.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/device_enumeration_resource_helper.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/device_enumeration_resource_helper.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/file_io_resource.h View 4 chunks +5 lines, -5 lines 0 comments Download
M ppapi/proxy/file_io_resource.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/file_ref_resource.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/flash_font_file_resource.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/flash_font_file_resource.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/gamepad_resource.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/interface_list.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ppapi/proxy/media_stream_audio_track_resource.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/media_stream_track_resource_base.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ppapi/proxy/media_stream_video_track_resource.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/message_handler.h View 3 chunks +4 lines, -3 lines 0 comments Download
M ppapi/proxy/message_handler.cc View 3 chunks +11 lines, -10 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/plugin_array_buffer_var.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_globals.h View 3 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/plugin_resource_tracker_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 4 chunks +8 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_flash_message_loop_proxy.h View 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_flash_message_loop_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_message_loop_proxy.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/ppp_instance_proxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppp_messaging_proxy.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/proxy_channel.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/raw_var_data.h View 5 chunks +7 lines, -7 lines 0 comments Download
M ppapi/proxy/raw_var_data.cc View 1 2 9 chunks +20 lines, -18 lines 0 comments Download
M ppapi/proxy/raw_var_data_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M ppapi/proxy/resource_message_test_sink.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/resource_message_test_sink.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/serialized_var.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/serialized_var.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/udp_socket_filter.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/udp_socket_filter.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/video_capture_resource.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/video_decoder_resource.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/video_decoder_resource.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/video_encoder_resource.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/video_encoder_resource.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M ppapi/proxy/video_encoder_resource_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/compositor_layer_data.h View 2 chunks +5 lines, -4 lines 0 comments Download
M ppapi/shared_impl/compositor_layer_data.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/media_stream_buffer_manager.h View 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/shared_impl/media_stream_buffer_manager.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M ppapi/shared_impl/media_stream_buffer_manager_unittest.cc View 1 6 chunks +7 lines, -8 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.h View 3 chunks +7 lines, -6 lines 0 comments Download
M ppapi/shared_impl/ppb_graphics_3d_shared.h View 2 chunks +5 lines, -4 lines 0 comments Download
M ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/proxy_lock.h View 11 chunks +20 lines, -16 lines 0 comments Download
M ppapi/shared_impl/resource_tracker.h View 3 chunks +4 lines, -3 lines 0 comments Download
M ppapi/shared_impl/resource_tracker.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/thread_aware_callback_unittest.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M ppapi/shared_impl/tracked_callback.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/var_tracker.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_flash_clipboard_thunk.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
dcheng
https://codereview.chromium.org/1864293002/diff/1/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h File chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h (right): https://codereview.chromium.org/1864293002/diff/1/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h#newcode21 chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h:21: std::unique_ptr<ppapi::host::ResourceHost> CreateResourceHost( I ended up changing this too since ...
4 years, 8 months ago (2016-04-06 19:57:02 UTC) #1
bbudge
I'm curious, why is base::WrapUnique used when replacing make_scoped_ptr, rather than the std::unique_ptr ctor? It ...
4 years, 8 months ago (2016-04-06 21:01:21 UTC) #2
dcheng
On 2016/04/06 at 21:01:21, bbudge wrote: > I'm curious, why is base::WrapUnique used when replacing ...
4 years, 8 months ago (2016-04-06 21:18:33 UTC) #3
bbudge
LGTM Thanks for doing this!
4 years, 8 months ago (2016-04-06 21:23:44 UTC) #4
piman
LGTM+nits https://codereview.chromium.org/1864293002/diff/1/ppapi/proxy/raw_var_data.cc File ppapi/proxy/raw_var_data.cc (right): https://codereview.chromium.org/1864293002/diff/1/ppapi/proxy/raw_var_data.cc#newcode113 ppapi/proxy/raw_var_data.cc:113: return std::unique_ptr<RawVarDataGraph>(); nit: nullptr, here and below? https://codereview.chromium.org/1864293002/diff/1/ppapi/proxy/raw_var_data.cc#newcode194 ...
4 years, 8 months ago (2016-04-06 21:25:03 UTC) #6
dcheng
https://codereview.chromium.org/1864293002/diff/1/ppapi/proxy/raw_var_data.cc File ppapi/proxy/raw_var_data.cc (right): https://codereview.chromium.org/1864293002/diff/1/ppapi/proxy/raw_var_data.cc#newcode113 ppapi/proxy/raw_var_data.cc:113: return std::unique_ptr<RawVarDataGraph>(); On 2016/04/06 at 21:25:03, piman wrote: > ...
4 years, 8 months ago (2016-04-06 21:29:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864293002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864293002/40001
4 years, 8 months ago (2016-04-06 21:29:54 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 00:00:21 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 00:01:45 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ced9224fbb7866e6ea7e9da221c0b2570008bd55
Cr-Commit-Position: refs/heads/master@{#385591}

Powered by Google App Engine
This is Rietveld 408576698