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

Issue 2762333003: Pref service: add a factory to create the client lib (Closed)

Created:
3 years, 9 months ago by tibell
Modified:
3 years, 9 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Pref service: add a factory to create the client lib The client lib is how most code will interact with the service, rather than using its Mojo interfaces directly. ConnectToPrefService: This is the main entry point for users. ServiceTest: Change the destruction order (of the message loop) to match the creation order. BUG=654988 Review-Url: https://codereview.chromium.org/2762333003 Cr-Commit-Position: refs/heads/master@{#458912} Committed: https://chromium.googlesource.com/chromium/src/+/d993a77b16b1f937bd09cb10399a9c7bea0ad46a

Patch Set 1 #

Patch Set 2 : Don't build tests on iOS #

Patch Set 3 : Make tests compile on Windows #

Total comments: 22

Patch Set 4 : Address sammc's review comments #

Patch Set 5 : Rename CreateCallback to match function it belongs to #

Total comments: 1

Patch Set 6 : Address more review comments from sammc@ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -16 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M services/BUILD.gn View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M services/preferences/BUILD.gn View 1 2 3 2 chunks +19 lines, -9 lines 0 comments Download
M services/preferences/manifest.json View 1 chunk +1 line, -0 lines 0 comments Download
A services/preferences/pref_service_factory_unittest.cc View 1 2 3 1 chunk +180 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/pref_service_factory.h View 1 2 3 4 1 chunk +43 lines, -0 lines 2 comments Download
A services/preferences/public/cpp/pref_service_factory.cc View 1 2 3 4 5 1 chunk +158 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/pref_store_manager_impl.h View 2 chunks +4 lines, -4 lines 0 comments Download
M services/preferences/public/cpp/pref_store_manager_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download
A services/preferences/unittest_manifest.json View 1 chunk +16 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/public/tools/test/service_test.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 48 (31 generated)
tibell
Don't build tests on iOS
3 years, 9 months ago (2017-03-22 03:25:27 UTC) #5
tibell
Don't build tests on iOS
3 years, 9 months ago (2017-03-22 03:35:37 UTC) #10
tibell
Make tests compile on Windows
3 years, 9 months ago (2017-03-22 04:02:48 UTC) #13
tibell
3 years, 9 months ago (2017-03-22 04:03:41 UTC) #17
Sam McNally
https://codereview.chromium.org/2762333003/diff/60001/services/preferences/BUILD.gn File services/preferences/BUILD.gn (right): https://codereview.chromium.org/2762333003/diff/60001/services/preferences/BUILD.gn#newcode59 services/preferences/BUILD.gn:59: catalog("tests_catalog") { testonly = true https://codereview.chromium.org/2762333003/diff/60001/services/preferences/pref_service_factory_unittest.cc File services/preferences/pref_service_factory_unittest.cc (right): ...
3 years, 9 months ago (2017-03-22 04:34:03 UTC) #18
tibell
Address sammc's review comments
3 years, 9 months ago (2017-03-22 05:29:30 UTC) #19
tibell
Address sammc's review comments
3 years, 9 months ago (2017-03-22 05:31:47 UTC) #23
tibell
PTAL https://codereview.chromium.org/2762333003/diff/60001/services/preferences/BUILD.gn File services/preferences/BUILD.gn (right): https://codereview.chromium.org/2762333003/diff/60001/services/preferences/BUILD.gn#newcode59 services/preferences/BUILD.gn:59: catalog("tests_catalog") { On 2017/03/22 04:34:03, Sam McNally wrote: ...
3 years, 9 months ago (2017-03-22 05:32:04 UTC) #25
tibell
rockot@chromium.org: Please review changes in - services/BUILD.gn - services/service_manager jam@chromium.org: Please review changes in - ...
3 years, 9 months ago (2017-03-22 05:33:29 UTC) #28
tibell
Rename CreateCallback to match function it belongs to
3 years, 9 months ago (2017-03-22 05:38:34 UTC) #30
Sam McNally
lgtm https://codereview.chromium.org/2762333003/diff/120001/services/preferences/public/cpp/pref_service_factory.cc File services/preferences/public/cpp/pref_service_factory.cc (right): https://codereview.chromium.org/2762333003/diff/120001/services/preferences/public/cpp/pref_service_factory.cc#newcode72 services/preferences/public/cpp/pref_service_factory.cc:72: scoped_refptr<PrefStore> ConnectionBarrier::CreatePrefStore( Can this be static or (better ...
3 years, 9 months ago (2017-03-22 05:43:04 UTC) #33
tibell
Address more review comments from sammc@
3 years, 9 months ago (2017-03-22 05:54:12 UTC) #34
Ken Rockot(use gerrit already)
Said files LGTM. BTW I think for toplevel BUILD.gn per //OWNERS you want someone from ...
3 years, 9 months ago (2017-03-22 06:21:01 UTC) #37
tibell
scottmg@chromium.org: Please review top-level BUILD.gn https://codereview.chromium.org/2762333003/diff/140001/services/preferences/public/cpp/pref_service_factory.h File services/preferences/public/cpp/pref_service_factory.h (right): https://codereview.chromium.org/2762333003/diff/140001/services/preferences/public/cpp/pref_service_factory.h#newcode11 services/preferences/public/cpp/pref_service_factory.h:11: #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_PREF_SERVICE_FACTORY_H_ On 2017/03/22 ...
3 years, 9 months ago (2017-03-22 06:26:13 UTC) #39
scottmg
BUILD.gn lgtm
3 years, 9 months ago (2017-03-22 14:45:14 UTC) #42
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/2762333003/140001
3 years, 9 months ago (2017-03-22 22:37:14 UTC) #45
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 22:53:48 UTC) #48
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/d993a77b16b1f937bd09cb10399a...

Powered by Google App Engine
This is Rietveld 408576698