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

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed)

Created:
5 years, 8 months ago by kcwu
Modified:
5 years, 7 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ScopedPtrHashMap's 2nd template parameter Now ScopedPtrHashMap expect the 2nd parameter is scoped_ptr<T>. For example, old usage ScopedPtrHashMap<int, Value> new usage ScopedPtrHashMap<int, scoped_ptr<Value>> With this change, ScopedPtrHashMap support scoped_ptr's custom deleter. R=danakj@chromium.org, tzik@chromium.org BUG=none Committed: https://crrev.com/213a4dbd5994d5aad53acb08e8960804bbffbc07 Cr-Commit-Position: refs/heads/master@{#327341}

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : change to ScopedPtrHashMap<Key, ScopedPtr> #

Patch Set 4 : rebase #

Patch Set 5 : fix build after rebase #

Total comments: 20

Patch Set 6 : address all comments #

Patch Set 7 : rebase #

Patch Set 8 : custom deleter #

Total comments: 2

Patch Set 9 : namespace base #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -100 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M base/containers/scoped_ptr_hash_map.h View 1 2 3 4 5 6 chunks +35 lines, -20 lines 0 comments Download
A base/containers/scoped_ptr_hash_map_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +85 lines, -0 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M cc/resources/layer_tiling_data.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_aggregator.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_factory.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M cc/trees/tree_synchronizer.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/signin/token_handle_util.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/net/wake_on_wifi_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/extension_event_observer.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/devtools_network_controller.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/media/media_stream_capture_indicator.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/prefs/tracked/pref_hash_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_task_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/keyboard_hook_handler_win.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/common/autofill_regexes.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/mock_web_blob_registry_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/affiliation_backend.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/rappor/sampler.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/signin/core/browser/account_tracker_service.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/view_manager/animation_runner.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/webui_generator/view.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/media_web_contents_observer.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_watcher.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_context_watcher.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_internals_ui.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/shared_worker/shared_worker_service_impl.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_handler_manager.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/test/mock_webblob_registry_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/cdm_promise_adapter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/base/key_systems_support_uma.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/blink/webencryptedmediaclient_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/cdm/aes_decryptor.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/interface_list.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/udp_socket_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/attachments/attachment_downloader_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/public/attachments/attachment_uploader_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/hardware_display_controller.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (7 generated)
kcwu
5 years, 8 months ago (2015-04-23 10:00:12 UTC) #1
danakj
https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h#newcode19 base/containers/scoped_ptr_hash_map.h:19: // This type acts like a hash_map<K, scoped_ptr<V, D> ...
5 years, 8 months ago (2015-04-23 20:36:22 UTC) #2
danakj
https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h#newcode19 base/containers/scoped_ptr_hash_map.h:19: // This type acts like a hash_map<K, scoped_ptr<V, D> ...
5 years, 8 months ago (2015-04-23 20:37:10 UTC) #3
danakj
https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h#newcode23 base/containers/scoped_ptr_hash_map.h:23: typename Value, Maybe we can take this opportunity to ...
5 years, 8 months ago (2015-04-23 20:54:51 UTC) #4
kcwu
https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1099383002/diff/20001/base/containers/scoped_ptr_hash_map.h#newcode19 base/containers/scoped_ptr_hash_map.h:19: // This type acts like a hash_map<K, scoped_ptr<V, D> ...
5 years, 8 months ago (2015-04-24 06:30:29 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1099383002/40001
5 years, 8 months ago (2015-04-24 06:41:09 UTC) #7
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 8 months ago (2015-04-24 06:41:11 UTC) #9
danakj
Wow there's already a lot more use of this class than I thought. Cool! https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map.h ...
5 years, 8 months ago (2015-04-24 17:15:10 UTC) #10
danakj
https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map_unittest.cc#newcode11 base/containers/scoped_ptr_hash_map_unittest.cc:11: can you wrap everything inside this namespace with an ...
5 years, 8 months ago (2015-04-24 17:22:04 UTC) #11
kcwu
https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map.h#newcode46 base/containers/scoped_ptr_hash_map.h:46: deleter_type()(it->second); On 2015/04/24 17:15:10, danakj wrote: > Rather than ...
5 years, 8 months ago (2015-04-27 13:28:03 UTC) #12
danakj
https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map_unittest.cc#newcode11 base/containers/scoped_ptr_hash_map_unittest.cc:11: On 2015/04/27 13:28:03, kcwu wrote: > On 2015/04/24 17:22:04, ...
5 years, 8 months ago (2015-04-27 16:50:09 UTC) #13
kcwu
https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1099383002/diff/80001/base/containers/scoped_ptr_hash_map_unittest.cc#newcode11 base/containers/scoped_ptr_hash_map_unittest.cc:11: On 2015/04/27 16:50:09, danakj wrote: > On 2015/04/27 13:28:03, ...
5 years, 8 months ago (2015-04-27 17:48:17 UTC) #14
danakj
https://codereview.chromium.org/1099383002/diff/140001/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1099383002/diff/140001/base/containers/scoped_ptr_hash_map_unittest.cc#newcode10 base/containers/scoped_ptr_hash_map_unittest.cc:10: namespace { sorry, but wrap this in namespace base ...
5 years, 8 months ago (2015-04-27 17:52:01 UTC) #15
kcwu
https://codereview.chromium.org/1099383002/diff/140001/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1099383002/diff/140001/base/containers/scoped_ptr_hash_map_unittest.cc#newcode10 base/containers/scoped_ptr_hash_map_unittest.cc:10: namespace { On 2015/04/27 17:52:00, danakj wrote: > sorry, ...
5 years, 8 months ago (2015-04-27 17:56:20 UTC) #16
danakj
LGTM
5 years, 8 months ago (2015-04-27 18:07:11 UTC) #17
danakj
Can you update the patch description to say what this is doing now? And the ...
5 years, 8 months ago (2015-04-27 18:07:53 UTC) #18
kcwu
On 2015/04/27 18:07:53, danakj wrote: > Can you update the patch description to say what ...
5 years, 8 months ago (2015-04-27 18:16:49 UTC) #19
kcwu
On 2015/04/27 18:16:49, kcwu wrote: > On 2015/04/27 18:07:53, danakj wrote: > > Can you ...
5 years, 8 months ago (2015-04-27 18:21:46 UTC) #20
danakj
I'd try get a reviewer for each of chrome/ content/ and components/. If you choose ...
5 years, 8 months ago (2015-04-27 18:23:44 UTC) #21
kcwu
owners review, thanks. jochen: chrome/ components/ piman: content/ ppapi/ scherkus: media/ sadrul: ui/ stanisc: sync/ ...
5 years, 8 months ago (2015-04-27 19:05:58 UTC) #23
jochen (gone - plz use gerrit)
lgtm
5 years, 8 months ago (2015-04-27 20:11:17 UTC) #24
rpaquay
lgtm device/bluetooth/bluetooth_device_win.cc
5 years, 8 months ago (2015-04-27 20:20:27 UTC) #25
piman
lgtm
5 years, 7 months ago (2015-04-27 23:41:06 UTC) #26
stanisc
lgtm sync/
5 years, 7 months ago (2015-04-27 23:44:02 UTC) #27
tzik
lgtm
5 years, 7 months ago (2015-04-28 05:01:22 UTC) #28
sadrul
ui lgtm
5 years, 7 months ago (2015-04-28 05:05:18 UTC) #29
scherkus (not reviewing)
media/ lgtm
5 years, 7 months ago (2015-04-28 17:26:18 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1099383002/160001
5 years, 7 months ago (2015-04-28 17:27:06 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/47387) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 7 months ago (2015-04-28 17:32:05 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1099383002/180001
5 years, 7 months ago (2015-04-28 17:51:57 UTC) #37
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 7 months ago (2015-04-28 18:54:45 UTC) #38
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 18:56:10 UTC) #39
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/213a4dbd5994d5aad53acb08e8960804bbffbc07
Cr-Commit-Position: refs/heads/master@{#327341}

Powered by Google App Engine
This is Rietveld 408576698