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

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed)

Created:
5 years, 1 month ago by dcheng
Modified:
5 years, 1 month ago
Reviewers:
danakj, brettw, Nico, davidben
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-worker-reviews_chromium.org, bondd+autofillwatch_chromium.org, bratell1, browser-components-watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, cmumford, darin (slow to review), darin-cc_chromium.org, derat+watch_chromium.org, dgrogan, estade+watch_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, gavinp+memory_chromium.org, horo+watch_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, jsbell+idb_chromium.org, jsbell+serviceworker_chromium.org, Jeffrey Yasskin, kinuko+fileapi, kinuko+serviceworker, kinuko+watch, mcasas+watch_chromium.org, michaeln, nhiroki, posciak+watch_chromium.org, qsr+mojo_chromium.org, rouslan+autofill_chromium.org, sadrul, serviceworker-reviews, tfarina, tracing+reviews_chromium.org, tzik, vabr+watchlistautofill_chromium.org, viettrungluu+watch_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, yusukes+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

Use std::default_delete as the default deleter for scoped_ptr. The aim is to make scoped_ptr and std::unique_ptr functionally identical so scoped_ptr can simply be a typedef. BUG=554298 Committed: https://crrev.com/0917ec4328dc20b59887d78f76b9f075e12e5f7f Cr-Commit-Position: refs/heads/master@{#360539}

Patch Set 1 #

Patch Set 2 : Android fixes? #

Patch Set 3 : Maybe fix //sql #

Patch Set 4 : And CrOS #

Patch Set 5 : A few more #

Patch Set 6 : More Win fixes #

Patch Set 7 : Fix Windows #

Total comments: 22

Patch Set 8 : Address comments #

Patch Set 9 : Fix Windows maybe #

Total comments: 7

Patch Set 10 : Address more comments #

Total comments: 5

Patch Set 11 : Newlines and another fix that doesn't fail locally #

Patch Set 12 : More Win fixes #

Patch Set 13 : Two more. Maybe it'll work this time #

Patch Set 14 : How many trial and errors before this builds on the Windows bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -285 lines) Patch
M base/memory/scoped_ptr.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +5 lines, -74 lines 0 comments Download
M base/memory/scoped_ptr_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -40 lines 0 comments Download
M base/process/process_metrics_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/app/close_handle_hook_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_network_interceptor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/media/webrtc_log_uploader.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.cc View 3 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/media/webrtc_rtp_dump_writer.cc View 1 chunk +5 lines, -10 lines 0 comments Download
M chrome/browser/metrics/time_ticks_experiment_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/taskbar_decorator_win.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.h View 2 chunks +3 lines, -1 line 0 comments Download
M chromeos/dbus/fake_modem_messaging_client.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/cloud_devices/common/description_items.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/cronet/android/url_request_adapter.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M components/gcm_driver/fake_gcm_client.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/invalidation/impl/mock_ack_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/memory_pressure/filtered_memory_pressure_calculator.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/renderer/histogram.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/proximity_auth/metrics.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/proximity_auth/screenlock_bridge.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/rappor/byte_vector_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_json/json_sanitizer.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M components/safe_json/safe_json_parser_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M components/search_provider_logos/google_logo_api.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/webcrypto/webcrypto_impl.cc View 24 chunks +33 lines, -33 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.cc View 2 chunks +9 lines, -15 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_truetype_font_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_process_manager.h View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_process_manager.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_script_cache_map.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/child/blob_storage/blob_consolidation.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/ax_content_node_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M crypto/scoped_nss_types.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
M crypto/scoped_openssl_types.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M device/hid/device_monitor_linux.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/hid/input_service_linux.h View 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/common_decoder.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M ipc/mojo/ipc_message_pipe_reader.h View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/audio_buffer_converter.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M media/base/serial_runner.h View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/yuv_convert.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/blink/interval_map.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/logging/stats_event_subscriber.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M media/filters/vp9_parser.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/renderers/mock_gpu_video_accelerator_factories.h View 2 chunks +1 line, -3 lines 0 comments Download
M media/video/video_decode_accelerator.h View 2 chunks +6 lines, -9 lines 0 comments Download
M media/video/video_decode_accelerator.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M media/video/video_encode_accelerator.h View 2 chunks +6 lines, -9 lines 0 comments Download
M media/video/video_encode_accelerator.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M mojo/shell/data_pipe_peek.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/crypto/strike_register.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_config_shared.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M remoting/base/compound_buffer.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M rlz/lib/rlz_lib.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M sql/mojo/vfs_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -3 lines 0 comments Download
M ui/accessibility/ax_node_data.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/x/x11_menu_list.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_detector.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/snap_scroll_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/animation/linear_animation.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/gdi_util.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/image/image_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_osmesa.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M ui/gl/gpu_timing.h View 2 chunks +2 lines, -1 line 0 comments Download
M ui/touch_selection/touch_handle.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (15 generated)
dcheng
Given that reference qualifiers don't work in VS2013 (see https://codereview.chromium.org/1432193002#msg4: I verified that reference qualifiers ...
5 years, 1 month ago (2015-11-16 18:22:59 UTC) #3
danakj
https://codereview.chromium.org/1445003002/diff/120001/base/memory/scoped_ptr.h File base/memory/scoped_ptr.h (left): https://codereview.chromium.org/1445003002/diff/120001/base/memory/scoped_ptr.h#oldcode153 base/memory/scoped_ptr.h:153: // Never allow someone to declare something like scoped_ptr<int[10]>. ...
5 years, 1 month ago (2015-11-16 22:19:03 UTC) #4
dcheng
https://codereview.chromium.org/1445003002/diff/120001/base/memory/scoped_ptr.h File base/memory/scoped_ptr.h (left): https://codereview.chromium.org/1445003002/diff/120001/base/memory/scoped_ptr.h#oldcode153 base/memory/scoped_ptr.h:153: // Never allow someone to declare something like scoped_ptr<int[10]>. ...
5 years, 1 month ago (2015-11-17 17:08:42 UTC) #5
danakj
LGTM https://codereview.chromium.org/1445003002/diff/120001/base/memory/scoped_ptr.h File base/memory/scoped_ptr.h (left): https://codereview.chromium.org/1445003002/diff/120001/base/memory/scoped_ptr.h#oldcode235 base/memory/scoped_ptr.h:235: assert(!ShouldAbortOnSelfReset<D>::value || p == nullptr || p != ...
5 years, 1 month ago (2015-11-17 19:09:27 UTC) #6
dcheng
+brettw for global approval (Addressing the code review comments now)
5 years, 1 month ago (2015-11-17 20:14:18 UTC) #8
dcheng
https://codereview.chromium.org/1445003002/diff/160001/crypto/scoped_nss_types.h File crypto/scoped_nss_types.h (left): https://codereview.chromium.org/1445003002/diff/160001/crypto/scoped_nss_types.h#oldcode19 crypto/scoped_nss_types.h:19: typedef void AllowSelfReset; On 2015/11/17 at 19:09:27, danakj (behind ...
5 years, 1 month ago (2015-11-17 20:21:03 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445003002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445003002/180001
5 years, 1 month ago (2015-11-17 20:27:22 UTC) #12
davidben
https://codereview.chromium.org/1445003002/diff/160001/crypto/scoped_nss_types.h File crypto/scoped_nss_types.h (left): https://codereview.chromium.org/1445003002/diff/160001/crypto/scoped_nss_types.h#oldcode19 crypto/scoped_nss_types.h:19: typedef void AllowSelfReset; On 2015/11/17 20:21:03, dcheng wrote: > ...
5 years, 1 month ago (2015-11-17 21:01:45 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/132035)
5 years, 1 month ago (2015-11-17 21:27:11 UTC) #15
brettw
Can you do a pass to check for the proper spacing around the include groups? ...
5 years, 1 month ago (2015-11-18 00:21:52 UTC) #16
dcheng
On 2015/11/18 at 00:21:52, brettw wrote: > Can you do a pass to check for ...
5 years, 1 month ago (2015-11-18 18:02:33 UTC) #17
dcheng
On 2015/11/18 at 18:02:33, dcheng wrote: > On 2015/11/18 at 00:21:52, brettw wrote: > > ...
5 years, 1 month ago (2015-11-18 18:03:15 UTC) #18
dcheng
(and fixed all the other ones that I found, with the exception of my question ...
5 years, 1 month ago (2015-11-18 18:12:16 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445003002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445003002/200001
5 years, 1 month ago (2015-11-18 18:12:49 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/136814)
5 years, 1 month ago (2015-11-18 19:27:25 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445003002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445003002/220001
5 years, 1 month ago (2015-11-18 19:55:31 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/136888)
5 years, 1 month ago (2015-11-18 21:35:04 UTC) #27
dcheng
scottmg@ pointed out that it was probably precompile.h causing the build differences. So hopefully this ...
5 years, 1 month ago (2015-11-19 02:59:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445003002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445003002/240001
5 years, 1 month ago (2015-11-19 03:00:31 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/137180)
5 years, 1 month ago (2015-11-19 03:57:58 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445003002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445003002/260001
5 years, 1 month ago (2015-11-19 05:16:42 UTC) #36
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 1 month ago (2015-11-19 07:00:29 UTC) #37
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 07:01:33 UTC) #38
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0917ec4328dc20b59887d78f76b9f075e12e5f7f
Cr-Commit-Position: refs/heads/master@{#360539}

Powered by Google App Engine
This is Rietveld 408576698