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

Issue 1326353002: Remove dependency of PrefSyncableService on Profile. (Closed)

Created:
5 years, 3 months ago by sdefresne
Modified:
5 years, 3 months ago
CC:
aboxhall+watch_chromium.org, achuith+watch_chromium.org, asanka, benjhayden+dwatch_chromium.org, blundell+watchlist_chromium.org, blundell, bondd+autofillwatch_chromium.org, browser-components-watch_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, davemoore+watch_chromium.org, derat+watch_chromium.org, devtools-reviews_chromium.org, dmazzoni+watch_chromium.org, droger+watchlist_chromium.org, dtseng+watch_chromium.org, dzhioev+watch_chromium.org, estade+watch_chromium.org, extensions-reviews_chromium.org, felt, gcasto+watchlist_chromium.org, grt+watch_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, je_julie, kalyank, kinuko+fileapi, markusheintz_, maxbogue+watch_chromium.org, Matt Giuca, mkwst+watchlist-passwords_chromium.org, mlamouri+watch-notifications_chromium.org, nektar+watch_chromium.org, nhiroki, nona+watch_chromium.org, noyau+watch_chromium.org, oshima+watch_chromium.org, pam+watch_chromium.org, peter+watch_chromium.org, pfeldman, plaree+watch_chromium.org, plundblad+watch_chromium.org, pvalenzuela+watch_chromium.org, raymes+watch_chromium.org, rginda+watch_chromium.org, rouslan+autofillwatch_chromium.org, sadrul, sdefresne+watchlist_chromium.org, shuchen+watch_chromium.org, stevenjb+watch_chromium.org, tapted, tfarina, tim+watch_chromium.org, tzik, vabr+watchlist_chromium.org, yurys, yusukes+watch_chromium.org, yuzo+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@pref_model_associator
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency of PrefSyncableService on Profile. In preparation of componentization of PrefSyncableService (with the goal of sharing the code with iOS embedder), remove the dependency on Profile by converting the two helper static method to free functions and moving them to chrome/browser/prefs/pref_service_syncable_util.{cc,h} that will stay in chrome/browser/prefs. BUG=522536 TBR=thakis@chromium.org Committed: https://crrev.com/ed27d86b3de3a37060a8887475fd019bdb66bbd8 Cr-Commit-Position: refs/heads/master@{#348600}

Patch Set 1 #

Patch Set 2 : Move files back to //chrome/browser/prefs & //chrome/test/base #

Total comments: 15

Patch Set 3 : Split CL, first part -> pref_service_syncable_util #

Patch Set 4 : Remove forward-declaration of Profile #

Patch Set 5 : Rebase #

Patch Set 6 : Fixing ChromeOS and Linux compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -48 lines) Patch
M chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/first_run/first_run.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/external_pref_loader.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/extension_welcome_notification.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/extension_welcome_notification_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_metrics_service.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
D chrome/browser/prefs/pref_service_syncable.h View 1 2 3 2 chunks +0 lines, -13 lines 0 comments Download
D chrome/browser/prefs/pref_service_syncable.cc View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
A chrome/browser/prefs/pref_service_syncable_util.h View 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/prefs/pref_service_syncable_util.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/chrome_sync_client.cc View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (12 generated)
sdefresne
blundell: FYI gab/mnissler: could one of you review this CL? It componentize all the pref_syncable ...
5 years, 3 months ago (2015-09-08 20:31:34 UTC) #2
sdefresne
On 2015/09/08 at 20:31:34, sdefresne wrote: > blundell: FYI > > gab/mnissler: could one of ...
5 years, 3 months ago (2015-09-08 20:32:48 UTC) #3
gab
On 2015/09/08 20:32:48, sdefresne wrote: > On 2015/09/08 at 20:31:34, sdefresne wrote: > > blundell: ...
5 years, 3 months ago (2015-09-08 21:53:48 UTC) #4
gab
On 2015/09/08 21:53:48, gab -- OOO sick child wrote: > On 2015/09/08 20:32:48, sdefresne wrote: ...
5 years, 3 months ago (2015-09-08 21:55:55 UTC) #5
sdefresne
I've split the CL in two. This first CL just clean the dependency on PrefModelAssociator, ...
5 years, 3 months ago (2015-09-09 11:50:52 UTC) #10
gab
lg overall, easier to follow now that refactoring is first done in place prior to ...
5 years, 3 months ago (2015-09-10 14:15:10 UTC) #12
sdefresne
I've started the split. Can you review this first CL that only introduce pref_service_syncable_util.{cc,h}?
5 years, 3 months ago (2015-09-10 17:09:20 UTC) #13
gab
lgtm, thanks
5 years, 3 months ago (2015-09-11 11:31:16 UTC) #14
sdefresne
TBR-ing thakis for mechanical changes to client after API change was approved by OWNERS for ...
5 years, 3 months ago (2015-09-14 09:57:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1326353002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1326353002/160001
5 years, 3 months ago (2015-09-14 09:57:25 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/96852)
5 years, 3 months ago (2015-09-14 10:08:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1326353002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1326353002/180001
5 years, 3 months ago (2015-09-14 10:12:48 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:180001)
5 years, 3 months ago (2015-09-14 11:02:47 UTC) #25
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/ed27d86b3de3a37060a8887475fd019bdb66bbd8 Cr-Commit-Position: refs/heads/master@{#348600}
5 years, 3 months ago (2015-09-14 11:03:33 UTC) #26
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:31:34 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ed27d86b3de3a37060a8887475fd019bdb66bbd8
Cr-Commit-Position: refs/heads/master@{#348600}

Powered by Google App Engine
This is Rietveld 408576698