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

Issue 2740493002: Pref service: create service at browser startup (Closed)

Created:
3 years, 9 months ago by tibell
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, jam, sdefresne+watchlist_chromium.org, darin-cc_chromium.org, droger+watchlist_chromium.org, jonross
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pref service: create service at browser startup Expose the already existing PrefStore implementations, which are owned through the profile, through the new prefs service. This new prefs service will replace the current pref service prototype used in mash and support synchronous deletions and decoupling the creation of the underling pref stores. The service is gated by a default-off feature flag. BUG=654988 Review-Url: https://codereview.chromium.org/2740493002 Cr-Commit-Position: refs/heads/master@{#455968} Committed: https://chromium.googlesource.com/chromium/src/+/ab3d36b33fb3412d562033d68c716ddae6e4c3bd

Patch Set 1 #

Patch Set 2 : Gate behind feature flag #

Patch Set 3 : Rename the capability provided by the service #

Total comments: 6

Patch Set 4 : Address sammc's review comments #

Total comments: 4

Patch Set 5 : Address bauerb's and jam's review comments #

Patch Set 6 : Merge #

Patch Set 7 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -10 lines) Patch
M chrome/app/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 4 chunks +21 lines, -1 line 0 comments Download
M components/sync_preferences/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_preferences/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync_preferences/pref_service_syncable_factory.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M components/sync_preferences/pref_service_syncable_factory.cc View 1 2 3 2 chunks +45 lines, -5 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M services/preferences/BUILD.gn View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A services/preferences/manifest.json View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 52 (33 generated)
tibell
Gate behind feature flag
3 years, 9 months ago (2017-03-07 03:25:57 UTC) #4
tibell
There are several steps in adding the new pref service: 1. Support for exposing non-user ...
3 years, 9 months ago (2017-03-07 04:33:58 UTC) #12
tibell
There are several steps in adding the new pref service: 1. Support for exposing non-user ...
3 years, 9 months ago (2017-03-07 04:33:58 UTC) #13
tibell
sammc@chromium.org: Please review everything rockot@chromium.org: Please review components/sync_preferences/DEPS bauerb@chromium.org: Please review chrome/browser/prefs/chrome_pref_service_factory.cc [13] chrome/browser/prefs/chrome_pref_service_factory.h [13] ...
3 years, 9 months ago (2017-03-07 04:38:45 UTC) #15
Sam McNally
https://codereview.chromium.org/2740493002/diff/40001/chrome/browser/prefs/preferences2_manifest.json File chrome/browser/prefs/preferences2_manifest.json (right): https://codereview.chromium.org/2740493002/diff/40001/chrome/browser/prefs/preferences2_manifest.json#newcode1 chrome/browser/prefs/preferences2_manifest.json:1: { I think this should be //services/preferences/manifest.json. https://codereview.chromium.org/2740493002/diff/40001/components/sync_preferences/pref_service_syncable_factory.cc File ...
3 years, 9 months ago (2017-03-07 05:32:04 UTC) #16
tibell
PTAL https://codereview.chromium.org/2740493002/diff/40001/chrome/browser/prefs/preferences2_manifest.json File chrome/browser/prefs/preferences2_manifest.json (right): https://codereview.chromium.org/2740493002/diff/40001/chrome/browser/prefs/preferences2_manifest.json#newcode1 chrome/browser/prefs/preferences2_manifest.json:1: { On 2017/03/07 05:32:03, Sam McNally wrote: > ...
3 years, 9 months ago (2017-03-07 06:25:39 UTC) #17
tibell
Address sammc's review comments
3 years, 9 months ago (2017-03-07 06:25:46 UTC) #18
Sam McNally
lgtm
3 years, 9 months ago (2017-03-07 06:27:31 UTC) #21
Bernhard Bauer
lgtm https://codereview.chromium.org/2740493002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2740493002/diff/60001/chrome/browser/chrome_content_browser_client.cc#newcode3247 chrome/browser/chrome_content_browser_client.cc:3247: base::MakeUnique<prefs::PrefStoreManagerImpl>( It's a bit strange to construct a ...
3 years, 9 months ago (2017-03-07 09:43:16 UTC) #24
Martin Barbella
security lgtm
3 years, 9 months ago (2017-03-07 21:31:03 UTC) #25
jam
https://codereview.chromium.org/2740493002/diff/60001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/2740493002/diff/60001/content/public/browser/content_browser_client.h#newcode690 content/public/browser/content_browser_client.h:690: virtual void RegisterInProcessServices(BrowserContext* browser_context, generally we put stuff in ...
3 years, 9 months ago (2017-03-07 21:41:03 UTC) #26
tibell
Address bauerb's and jam's review comments
3 years, 9 months ago (2017-03-08 00:05:26 UTC) #27
tibell
PTAL https://codereview.chromium.org/2740493002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2740493002/diff/60001/chrome/browser/chrome_content_browser_client.cc#newcode3247 chrome/browser/chrome_content_browser_client.cc:3247: base::MakeUnique<prefs::PrefStoreManagerImpl>( On 2017/03/07 09:43:16, Bernhard Bauer wrote: > ...
3 years, 9 months ago (2017-03-08 00:05:52 UTC) #29
tibell
Merge
3 years, 9 months ago (2017-03-08 00:29:32 UTC) #33
tibell
Merge
3 years, 9 months ago (2017-03-08 03:50:19 UTC) #39
tibell
Ping jam@chromium.org: I'd really like to submit this before going on vacation, as sammc@chromium.org has ...
3 years, 9 months ago (2017-03-10 01:35:23 UTC) #45
jam
lgtm
3 years, 9 months ago (2017-03-10 01:42:47 UTC) #46
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/2740493002/120001
3 years, 9 months ago (2017-03-10 01:43:44 UTC) #49
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 02:58:51 UTC) #52
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ab3d36b33fb3412d562033d68c71...

Powered by Google App Engine
This is Rietveld 408576698