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

Issue 2743563003: Pref service: add persistent pref store frontend and backend. (Closed)

Created:
3 years, 9 months ago by Sam McNally
Modified:
3 years, 9 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pref service: add persistent pref store frontend and backend. Key parts: - PersistentPrefStoreImpl: A mojo adapter that provides access from multiple clients to a single PersistentPrefStore. - PersistentPrefStoreClient: This bridges the PersistentPrefStore interface and a mojo connection to the PersistentPrefStoreImpl backend. - PrefStoreClientMixin: This is a version of PrefStoreClient modified to be a mixin so it can be reused by PersistentPrefStoreClient to implement the PrefStore part of the PersistentPrefStore interface. - PrefStoreClient: The functionality that was previously here mostly moved into PrefStoreClientMixin, which this now uses. BUG=654988 Review-Url: https://codereview.chromium.org/2743563003 Cr-Commit-Position: refs/heads/master@{#456306} Committed: https://chromium.googlesource.com/chromium/src/+/564fe924388fd462939f76cb1894dbface5eef71

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : fix lint #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1280 lines, -113 lines) Patch
M services/preferences/BUILD.gn View 1 2 chunks +34 lines, -1 line 0 comments Download
A services/preferences/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A services/preferences/persistent_pref_store_impl.h View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A services/preferences/persistent_pref_store_impl.cc View 1 1 chunk +165 lines, -0 lines 0 comments Download
A services/preferences/persistent_pref_store_impl_unittest.cc View 1 2 1 chunk +459 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/persistent_pref_store_client.h View 1 chunk +74 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/persistent_pref_store_client.cc View 1 1 chunk +129 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/pref_store_client.h View 2 chunks +2 lines, -34 lines 0 comments Download
M services/preferences/public/cpp/pref_store_client.cc View 1 2 1 chunk +5 lines, -64 lines 0 comments Download
A services/preferences/public/cpp/pref_store_client_mixin.h View 1 chunk +80 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/pref_store_client_mixin.cc View 1 2 1 chunk +122 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/preferences.typemap View 2 chunks +9 lines, -2 lines 0 comments Download
M services/preferences/public/cpp/preferences_struct_traits.h View 2 chunks +12 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/preferences_struct_traits.cc View 1 chunk +72 lines, -0 lines 0 comments Download
M services/preferences/public/cpp/tests/BUILD.gn View 2 chunks +1 line, -11 lines 0 comments Download
M services/preferences/public/cpp/tests/pref_store_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/preferences/public/interfaces/preferences.mojom View 1 chunk +41 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 48 (39 generated)
Sam McNally
3 years, 9 months ago (2017-03-10 00:25:20 UTC) #20
tibell
https://codereview.chromium.org/2743563003/diff/100001/services/preferences/public/cpp/persistent_pref_store_client.cc File services/preferences/public/cpp/persistent_pref_store_client.cc (right): https://codereview.chromium.org/2743563003/diff/100001/services/preferences/public/cpp/persistent_pref_store_client.cc#newcode89 services/preferences/public/cpp/persistent_pref_store_client.cc:89: pref_store_->CommitPendingWrite(); Perhaps DCHECK(pref_store_) here and elsewhere. https://codereview.chromium.org/2743563003/diff/100001/services/preferences/public/cpp/pref_store_client_mixin.cc File services/preferences/public/cpp/pref_store_client_mixin.cc ...
3 years, 9 months ago (2017-03-10 02:18:27 UTC) #23
Sam McNally
https://codereview.chromium.org/2743563003/diff/100001/services/preferences/public/cpp/persistent_pref_store_client.cc File services/preferences/public/cpp/persistent_pref_store_client.cc (right): https://codereview.chromium.org/2743563003/diff/100001/services/preferences/public/cpp/persistent_pref_store_client.cc#newcode89 services/preferences/public/cpp/persistent_pref_store_client.cc:89: pref_store_->CommitPendingWrite(); On 2017/03/10 02:18:27, tibell wrote: > Perhaps DCHECK(pref_store_) ...
3 years, 9 months ago (2017-03-10 02:43:25 UTC) #26
tibell
lgtm
3 years, 9 months ago (2017-03-10 04:14:01 UTC) #33
Sam McNally
+bauerb for the DEPS change +mbarbella for mojom, typemap and traits
3 years, 9 months ago (2017-03-10 04:25:22 UTC) #35
Bernhard Bauer
DEPS LGTM.
3 years, 9 months ago (2017-03-10 13:03:34 UTC) #38
Martin Barbella
mojom/traits lgtm
3 years, 9 months ago (2017-03-10 22:14:41 UTC) #39
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/2743563003/160001
3 years, 9 months ago (2017-03-12 23:24:46 UTC) #45
commit-bot: I haz the power
3 years, 9 months ago (2017-03-12 23:29:27 UTC) #48
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/564fe924388fd462939f76cb1894...

Powered by Google App Engine
This is Rietveld 408576698