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

Issue 2791903003: Pref service: have Mash and Chrome connect to the right pref stores (Closed)

Created:
3 years, 8 months ago by tibell
Modified:
3 years, 8 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Pref service: have Mash and Chrome connect to the right pref stores Chrome contains the implementation of all pref stores, except the default pref store, in-process and thus only needs to connect to one store. Mash needs to connect to all pref stores. This is achieved by having clients specify which pref stores they already know of in-process, rather than the other way around. That way e.g. mash doesn't need to know which pref stores Chrome exposes to it. BUG=654988 Review-Url: https://codereview.chromium.org/2791903003 Cr-Commit-Position: refs/heads/master@{#462364} Committed: https://chromium.googlesource.com/chromium/src/+/2961ff4f598924f8132e9fc1171009cc0ee0b7d6

Patch Set 1 #

Total comments: 8

Patch Set 2 : Update PrefServiceFactoryTest #

Total comments: 14

Patch Set 3 : Address review comments #

Patch Set 4 : PrefServiceFactoryTest: fix service creation #

Patch Set 5 : Rebase #

Patch Set 6 : Don't require clients to specify the default store, but allow it #

Total comments: 2

Patch Set 7 : Address bauerb@'s review comments #

Patch Set 8 : ProfilePrefStoreManagerTest: explicit list stores to connect to #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -50 lines) Patch
M ash/shell.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prefs/active_profile_pref_service.h View 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/prefs/active_profile_pref_service.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/preferences/pref_service_factory_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M services/preferences/pref_store_manager_impl.h View 1 2 3 4 5 6 2 chunks +21 lines, -12 lines 0 comments Download
M services/preferences/pref_store_manager_impl.cc View 1 2 3 4 5 6 6 chunks +40 lines, -10 lines 0 comments Download
M services/preferences/public/cpp/persistent_pref_store_client.h View 3 chunks +7 lines, -2 lines 0 comments Download
M services/preferences/public/cpp/persistent_pref_store_client.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M services/preferences/public/cpp/pref_service_factory.h View 2 chunks +7 lines, -4 lines 0 comments Download
M services/preferences/public/cpp/pref_service_factory.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M services/preferences/public/interfaces/preferences.mojom View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 53 (37 generated)
tibell
3 years, 8 months ago (2017-04-03 06:56:26 UTC) #4
tibell
sammc@chromium.org: Please review all changes as the primary reviewer. bauerb@chromium.org: Please review changes in - ...
3 years, 8 months ago (2017-04-03 07:04:26 UTC) #6
Sam McNally
lgtm https://codereview.chromium.org/2791903003/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2791903003/diff/1/chrome/browser/prefs/browser_prefs.cc#newcode817 chrome/browser/prefs/browser_prefs.cc:817: PrefValueStore::COMMAND_LINE_STORE, PrefValueStore::USER_STORE, Remove USER_STORE. https://codereview.chromium.org/2791903003/diff/1/chrome/browser/prefs/profile_pref_store_manager.cc File chrome/browser/prefs/profile_pref_store_manager.cc (right): ...
3 years, 8 months ago (2017-04-03 10:09:32 UTC) #14
Bernhard Bauer
https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc#newcode802 ash/shell.cc:802: make_scoped_refptr(new PrefRegistrySimple()), {}, Nit: Add a comment /* already_connected_types ...
3 years, 8 months ago (2017-04-03 10:37:40 UTC) #15
sky
LGTM
3 years, 8 months ago (2017-04-03 16:28:13 UTC) #16
Martin Barbella
mojom lgtm
3 years, 8 months ago (2017-04-03 18:17:12 UTC) #17
tibell
Address review comments
3 years, 8 months ago (2017-04-04 04:05:36 UTC) #18
tibell
PTAL https://codereview.chromium.org/2791903003/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2791903003/diff/1/chrome/browser/prefs/browser_prefs.cc#newcode817 chrome/browser/prefs/browser_prefs.cc:817: PrefValueStore::COMMAND_LINE_STORE, PrefValueStore::USER_STORE, On 2017/04/03 10:09:31, Sam McNally wrote: ...
3 years, 8 months ago (2017-04-04 04:05:59 UTC) #20
tibell
PrefServiceFactoryTest: fix service creation
3 years, 8 months ago (2017-04-04 05:03:25 UTC) #24
tibell
Rebase
3 years, 8 months ago (2017-04-04 05:29:19 UTC) #27
Bernhard Bauer
lgtm https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc#newcode802 ash/shell.cc:802: make_scoped_refptr(new PrefRegistrySimple()), {}, On 2017/04/04 04:05:59, tibell wrote: ...
3 years, 8 months ago (2017-04-05 10:04:32 UTC) #34
tibell
PTAL https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc#newcode802 ash/shell.cc:802: make_scoped_refptr(new PrefRegistrySimple()), {}, On 2017/04/05 10:04:32, Bernhard (slow ...
3 years, 8 months ago (2017-04-06 01:05:53 UTC) #36
tibell
On 2017/04/06 01:05:53, tibell wrote: > PTAL > > https://codereview.chromium.org/2791903003/diff/20001/ash/shell.cc > File ash/shell.cc (right): > ...
3 years, 8 months ago (2017-04-06 05:02:16 UTC) #44
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/2791903003/140001
3 years, 8 months ago (2017-04-06 05:02:40 UTC) #47
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/2791903003/140001
3 years, 8 months ago (2017-04-06 05:23:07 UTC) #50
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 05:32:32 UTC) #53
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/2961ff4f598924f8132e9fc11710...

Powered by Google App Engine
This is Rietveld 408576698