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

Issue 64193003: Clean up PrefServiceBuilder (Closed)

Created:
7 years, 1 month ago by Ilya Sherman
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, benquan, tfarina, browser-components-watch_chromium.org, dyu1, Dane Wallinga, oshima+watch_chromium.org, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org, chromium-apps-reviews_chromium.org, markusheintz_, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, android-webview-reviews_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Clean up PrefServiceBuilder * Use simple setters rather than With* methods. * Explicitly transfer memory ownership. * Rename "Builder" to "Factory" * Eliminate the side-effect of resetting the builder from the Create* methods. Along the way, fix a memory leak in the Android WebView. BUG=315499 TEST=none (code should continue to compile and tests should continue to pass) R=joi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235913

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix several compile errors #

Patch Set 3 : Fix indentation #

Total comments: 2

Patch Set 4 : Rename 'Builder' -> 'Factory' #

Patch Set 5 : Rename 'Builder' -> 'Factory' #

Patch Set 6 : Rename variables, too #

Patch Set 7 : Fix memory ownership bug in ProxyPolicyTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -640 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 chunks +8 lines, -10 lines 0 comments Download
M android_webview/native/aw_autofill_manager_delegate.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_autofill_manager_delegate.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/base.gyp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/prefs/pref_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/prefs/pref_service_builder.h View 1 2 3 1 chunk +0 lines, -74 lines 0 comments Download
M base/prefs/pref_service_builder.cc View 1 2 3 1 chunk +0 lines, -110 lines 0 comments Download
A + base/prefs/pref_service_factory.h View 1 2 3 4 3 chunks +42 lines, -25 lines 0 comments Download
A + base/prefs/pref_service_factory.cc View 1 2 3 4 4 chunks +20 lines, -67 lines 0 comments Download
M base/prefs/testing_pref_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 5 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/net/ssl_config_service_manager_pref_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 5 4 chunks +31 lines, -26 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/prefs/pref_service_mock_builder.h View 1 2 3 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/browser/prefs/pref_service_mock_builder.cc View 1 2 3 1 chunk +0 lines, -30 lines 0 comments Download
A + chrome/browser/prefs/pref_service_mock_factory.h View 1 2 3 4 5 1 chunk +13 lines, -7 lines 0 comments Download
A + chrome/browser/prefs/pref_service_mock_factory.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_syncable_builder.h View 1 2 3 1 chunk +0 lines, -47 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable_builder.cc View 1 2 3 1 chunk +0 lines, -75 lines 0 comments Download
A + chrome/browser/prefs/pref_service_syncable_factory.h View 1 2 3 4 2 chunks +13 lines, -15 lines 0 comments Download
A + chrome/browser/prefs/pref_service_syncable_factory.cc View 1 2 3 4 2 chunks +35 lines, -37 lines 0 comments Download
M chrome/browser/prefs/proxy_policy_unittest.cc View 1 2 3 4 5 6 7 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_pref_service_syncable.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/reliability/page_load_test.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M components/autofill/core/browser/autofill_test_utils.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Ilya Sherman
7 years, 1 month ago (2013-11-08 03:01:04 UTC) #1
Jói
I'm not sure what the motivation was to remove the .WithXyz pattern (which is just ...
7 years, 1 month ago (2013-11-08 13:48:37 UTC) #2
Ilya Sherman
On 2013/11/08 13:48:37, Jói wrote: > I'm not sure what the motivation was to remove ...
7 years, 1 month ago (2013-11-11 21:27:55 UTC) #3
Ilya Sherman
Mattias, could you take a look at the base/prefs/ changes? Thanks.
7 years, 1 month ago (2013-11-11 21:29:58 UTC) #4
Ilya Sherman
On 2013/11/11 21:29:58, Ilya Sherman wrote: > Mattias, could you take a look at the ...
7 years, 1 month ago (2013-11-11 21:30:21 UTC) #5
Ilya Sherman
Dominic, could you take a look at base/prefs and chrome/browser/prefs? Thanks.
7 years, 1 month ago (2013-11-14 01:05:15 UTC) #6
battre
LGTM - thanks for the cleanup work
7 years, 1 month ago (2013-11-14 01:58:20 UTC) #7
Ilya Sherman
tommi@chromium.org: Please review changes in //chrome_frame. joth@chromium.org: Please review changes in //android_webview. thakis@chromium.org: Please review ...
7 years, 1 month ago (2013-11-14 02:02:14 UTC) #8
joth__google
aw/ lgtm
7 years, 1 month ago (2013-11-14 02:04:23 UTC) #9
Ilya Sherman
On 2013/11/14 02:04:23, joth__google wrote: > aw/ lgtm Hmm, I think the CQ is going ...
7 years, 1 month ago (2013-11-14 02:05:29 UTC) #10
tommi (sloooow) - chröme
lgtm for chrome_frame/*
7 years, 1 month ago (2013-11-14 09:21:27 UTC) #11
Nico
(sorry if this was discussed above, it wasn't clear to me from cl description or ...
7 years, 1 month ago (2013-11-14 14:41:40 UTC) #12
joth
Lgtm reprised On Wednesday, 13 November 2013, wrote: > On 2013/11/14 02:04:23, joth__google wrote: > ...
7 years, 1 month ago (2013-11-14 16:28:20 UTC) #13
Ilya Sherman
https://chromiumcodereview.appspot.com/64193003/diff/130001/chrome/browser/extensions/test_extension_prefs.cc File chrome/browser/extensions/test_extension_prefs.cc (right): https://chromiumcodereview.appspot.com/64193003/diff/130001/chrome/browser/extensions/test_extension_prefs.cc#newcode110 chrome/browser/extensions/test_extension_prefs.cc:110: pref_service_ = builder.CreateSyncable(pref_registry_.get()).Pass(); On 2013/11/14 14:41:40, Nico (in Tokyo ...
7 years, 1 month ago (2013-11-14 22:34:49 UTC) #14
Nico
On Thu, Nov 14, 2013 at 10:34 PM, <isherman@chromium.org> wrote: > > https://chromiumcodereview.appspot.com/64193003/diff/ > 130001/chrome/browser/extensions/test_extension_prefs.cc ...
7 years, 1 month ago (2013-11-17 07:18:16 UTC) #15
Mattias Nissler (ping if slow)
On 2013/11/17 07:18:16, Nico (in Tokyo until Nov 25) wrote: > On Thu, Nov 14, ...
7 years, 1 month ago (2013-11-18 09:34:36 UTC) #16
Ilya Sherman
Alright, renamed from "builder" to "factory". PTAL :)
7 years, 1 month ago (2013-11-19 00:09:29 UTC) #17
Nico
lgtm
7 years, 1 month ago (2013-11-19 00:22:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/64193003/410001
7 years, 1 month ago (2013-11-19 00:47:10 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=191816
7 years, 1 month ago (2013-11-19 01:53:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/64193003/570001
7 years, 1 month ago (2013-11-19 02:09:13 UTC) #21
commit-bot: I haz the power
7 years, 1 month ago (2013-11-19 04:22:18 UTC) #22
Message was sent while issue was closed.
Change committed as 235913

Powered by Google App Engine
This is Rietveld 408576698