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

Issue 2784513002: Move PrefRegistrySimple to use unique_ptr<Value> (Closed)

Created:
3 years, 8 months ago by vabr (Chromium)
Modified:
3 years, 8 months ago
CC:
achuith+watch_chromium.org, alemate+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, groby+spellwatch_chromium.org, jam, kalyank, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, oshima+watch_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org, sadrul, tfarina, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move PrefRegistrySimple to use unique_ptr<Value> RegisterListPref and RegisterDictionaryPref methods of PrefRegistrySimple pass Value ownership with a raw pointer. This CL changes that to passing unique_ptr, because that is a safer and clearer option. It is also a pre-requisite for migrating Value API off raw pointer ownership passing. BUG=697817 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2784513002 Cr-Commit-Position: refs/heads/master@{#460366} Committed: https://chromium.googlesource.com/chromium/src/+/88e50721bcd19d719d3417ac9c3f86dd87439268

Patch Set 1 #

Patch Set 2 : Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -77 lines) Patch
M chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugins/plugins_resource_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/signin/easy_unlock_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_factory.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_utils.cc View 2 chunks +2 lines, -1 line 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/doodle/doodle_service.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/network_time/network_time_tracker.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/ntp_tiles/popular_sites_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/prefs/pref_member_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/prefs/pref_registry.h View 2 chunks +3 lines, -1 line 0 comments Download
M components/prefs/pref_registry.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M components/prefs/pref_registry_simple.h View 4 chunks +11 lines, -8 lines 0 comments Download
M components/prefs/pref_registry_simple.cc View 2 chunks +54 lines, -38 lines 0 comments Download
M components/prefs/pref_service_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/proxy_config/pref_proxy_config_tracker_impl.cc View 2 chunks +8 lines, -6 lines 0 comments Download
M components/signin/core/browser/signin_manager_base.cc View 2 chunks +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (14 generated)
vabr (Chromium)
Hi all, Similarly to the previous CL: bauerb@, please review components/prefs/pref_registry_simple.*, which is the key ...
3 years, 8 months ago (2017-03-28 16:52:19 UTC) #10
jochen (gone - plz use gerrit)
rubberstamp lgtm
3 years, 8 months ago (2017-03-29 06:27:40 UTC) #13
jdoerrie
On 2017/03/29 06:27:40, jochen wrote: > rubberstamp lgtm Spot checked, LGTM!
3 years, 8 months ago (2017-03-29 09:16:20 UTC) #14
Bernhard Bauer
lgtm
3 years, 8 months ago (2017-03-29 09:23:28 UTC) #15
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/2784513002/20001
3 years, 8 months ago (2017-03-29 13:16:37 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 13:23:14 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/88e50721bcd19d719d3417ac9c3f...

Powered by Google App Engine
This is Rietveld 408576698