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

Issue 2294653002: Some linked_ptr -> unique_ptr conversion in extensions/browser. (Closed)

Created:
4 years, 3 months ago by lazyboy
Modified:
4 years, 3 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Some linked_ptr -> unique_ptr conversion in extensions/browser. Change ExtensionService::AddProviderForTesting() to take unique_ptr instead of raw pointer. BUG=556939 Test=None, internal only change. Committed: https://crrev.com/f33109d5e1ca94a1e12ed34eb2f55cbb1d767cc4 Cr-Commit-Position: refs/heads/master@{#415518}

Patch Set 1 #

Patch Set 2 : update and fix chromeos #

Patch Set 3 : nullptr #

Total comments: 33

Patch Set 4 : address comments #

Patch Set 5 : address comments #

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -257 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/event_router.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/mdns/mdns_api_unittest.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_migrator_unittest.cc View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 1 2 3 7 chunks +50 lines, -100 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl_unittest.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M extensions/browser/api/alarms/alarms_api_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M extensions/browser/api/api_resource_manager.h View 1 2 3 6 chunks +8 lines, -7 lines 0 comments Download
M extensions/browser/api/cast_channel/logger.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/api/cast_channel/logger.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/management/management_api.cc View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M extensions/browser/api/storage/local_value_store_cache.h View 2 chunks +1 line, -2 lines 0 comments Download
M extensions/browser/api/storage/local_value_store_cache.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/browser/api/storage/settings_test_util.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/system_storage/system_storage_apitest.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M extensions/browser/blob_holder.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/blob_holder.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/content_verifier_io_data.h View 2 chunks +1 line, -2 lines 0 comments Download
M extensions/browser/content_verifier_io_data.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M extensions/browser/declarative_user_script_manager.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M extensions/browser/declarative_user_script_manager.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M extensions/browser/event_listener_map.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/event_listener_map.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M extensions/browser/extension_prefs.h View 2 chunks +1 line, -2 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/external_provider_interface.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/guest_view/app_view/app_view_guest.cc View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.h View 3 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M extensions/browser/lazy_background_task_queue.h View 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/lazy_background_task_queue.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/process_manager.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M extensions/browser/updater/extension_downloader.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/updater/extension_downloader.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M extensions/browser/updater/request_queue.h View 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/value_store/value_store_unittest.cc View 1 2 3 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
lazyboy
4 years, 3 months ago (2016-08-30 18:09:53 UTC) #8
Devlin
A bunch of nits, but overall, looks good. Thanks for doing this! https://codereview.chromium.org/2294653002/diff/40001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc ...
4 years, 3 months ago (2016-08-30 19:21:54 UTC) #11
lazyboy
https://codereview.chromium.org/2294653002/diff/40001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc (right): https://codereview.chromium.org/2294653002/diff/40001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc#newcode1484 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc:1484: const std::string extension_id = listener->extension_id(); On 2016/08/30 19:21:53, Devlin ...
4 years, 3 months ago (2016-08-30 20:30:57 UTC) #12
Avi (use Gerrit)
FYI, linked_ptr conversion is http://crbug.com/556939 .
4 years, 3 months ago (2016-08-30 20:33:00 UTC) #13
lazyboy
On 2016/08/30 20:33:00, Avi wrote: > FYI, linked_ptr conversion is http://crbug.com/556939 . Added Bug#, thanks!
4 years, 3 months ago (2016-08-30 20:34:46 UTC) #15
Devlin
lgtm. Might be worth updating description to include the MakeUnique conversions, too? https://codereview.chromium.org/2294653002/diff/40001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc ...
4 years, 3 months ago (2016-08-30 22:48:28 UTC) #16
lazyboy
Updated CL description. https://codereview.chromium.org/2294653002/diff/40001/extensions/browser/declarative_user_script_manager.cc File extensions/browser/declarative_user_script_manager.cc (right): https://codereview.chromium.org/2294653002/diff/40001/extensions/browser/declarative_user_script_manager.cc#newcode48 extensions/browser/declarative_user_script_manager.cc:48: declarative_user_script_masters_[host_id] = base::WrapUnique(master); On 2016/08/30 22:48:28, ...
4 years, 3 months ago (2016-08-30 23:28:29 UTC) #19
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/2294653002/90001
4 years, 3 months ago (2016-08-31 00:31:59 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 3 months ago (2016-08-31 00:37:46 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 00:40:47 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f33109d5e1ca94a1e12ed34eb2f55cbb1d767cc4
Cr-Commit-Position: refs/heads/master@{#415518}

Powered by Google App Engine
This is Rietveld 408576698