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

Issue 1332283003: Remove dependency of PrefSyncableService on PrefsTabHelper. (Closed)

Created:
5 years, 3 months ago by sdefresne
Modified:
5 years, 3 months ago
CC:
blundell, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@pref_service_syncable_util
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency of PrefSyncableService on PrefsTabHelper. In preparation of the componentization of PrefSyncableService (with the goal of sharing the code on iOS), remove the dependency on PrefsTabHelper by passing a list of preferences to register as overlaid. Add a helper method in chrome/browser/prefspref_service_syncable_util.cc to pass the list of preferences previously registered in PrefsTabHelper. Remove the method PrefsTabHelper::InitIncognitoUserPrefStore(). BUG=522536 TBR=jochen@chromium.org Committed: https://crrev.com/0b1722f004e4424b18585a29234408b7112815cf Cr-Commit-Position: refs/heads/master@{#348656}

Patch Set 1 #

Patch Set 2 : Update PrefServiceSyncable::CreateIncognitoPrefService comment #

Total comments: 6

Patch Set 3 : Pass a list of preferences instead of a callback #

Total comments: 7

Patch Set 4 : Fix grammar error and rename incognito_extensions_prefs to incognito_extensions_prefs_store #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -40 lines) Patch
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_syncable.h View 1 2 3 2 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable.cc View 1 2 3 7 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable_util.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable_util.cc View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (4 generated)
sdefresne
Second CL in preparation of componentization of PrefSyncableService (split from https://codereview.chromium.org/1326353002/). gab/bauerb: can one of ...
5 years, 3 months ago (2015-09-11 10:01:55 UTC) #2
gab
Overall I find that having this API take a callback which is the same for ...
5 years, 3 months ago (2015-09-11 12:58:32 UTC) #3
Bernhard Bauer
On 2015/09/11 12:58:32, gab wrote: > Overall I find that having this API take a ...
5 years, 3 months ago (2015-09-11 16:17:43 UTC) #4
sdefresne
bauerb: please take another look. gab: for your information. I've updated the CreateIncognitoPrefService() to take ...
5 years, 3 months ago (2015-09-14 13:17:26 UTC) #5
Bernhard Bauer
LGTM, thanks!
5 years, 3 months ago (2015-09-14 14:33:39 UTC) #6
gab
lgtm % comment and naming nits. Thanks! Gab https://codereview.chromium.org/1332283003/diff/40001/chrome/browser/prefs/pref_service_syncable.h File chrome/browser/prefs/pref_service_syncable.h (right): https://codereview.chromium.org/1332283003/diff/40001/chrome/browser/prefs/pref_service_syncable.h#newcode42 chrome/browser/prefs/pref_service_syncable.h:42: // ...
5 years, 3 months ago (2015-09-14 16:20:10 UTC) #7
sdefresne
TBR-ing jochen for mechanical change to client code after API change approved by OWNERS chrome/browser/extensions/test_extension_prefs.cc ...
5 years, 3 months ago (2015-09-14 17:28:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332283003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332283003/60001
5 years, 3 months ago (2015-09-14 17:30:07 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-14 18:12:21 UTC) #13
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0b1722f004e4424b18585a29234408b7112815cf Cr-Commit-Position: refs/heads/master@{#348656}
5 years, 3 months ago (2015-09-14 18:13:01 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:34:24 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0b1722f004e4424b18585a29234408b7112815cf
Cr-Commit-Position: refs/heads/master@{#348656}

Powered by Google App Engine
This is Rietveld 408576698