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

Issue 10829019: [sync] Refactor how default sync datatypes are set. (Closed)

Created:
8 years, 5 months ago by nyquist
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing)
Visibility:
Public.

Description

[sync] Refactor how default sync datatypes are set. Android does not sync all datatypes, so we need a way to differentiate which datatypes should be enabled by default. Since parts of this require extensions, we need to register the user preferences for extensions as part of this. BUG=139057 TEST=Signing in to sync on should enable all the correct default datatypes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150485

Patch Set 1 #

Patch Set 2 : Removed unused include #

Total comments: 1

Patch Set 3 : Registering extension prefs and using standard constructor #

Total comments: 4

Patch Set 4 : Removed more unecessary diff. #

Patch Set 5 : Rebased #

Total comments: 3

Patch Set 6 : Move pref registration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -22 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 4 chunks +32 lines, -21 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
nyquist
Moving component startup around so it is easier to ifdef out non-Android sync types.
8 years, 4 months ago (2012-07-26 19:23:39 UTC) #1
nilesh
https://chromiumcodereview.appspot.com/10829019/diff/2001/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://chromiumcodereview.appspot.com/10829019/diff/2001/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode91 chrome/browser/sync/profile_sync_components_factory_impl.cc:91: extension_system_(NULL) { I think we include ExtensionSystemFactory and this ...
8 years, 4 months ago (2012-07-27 00:59:07 UTC) #2
akalin
http://codereview.chromium.org/10829019/diff/7002/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): http://codereview.chromium.org/10829019/diff/7002/chrome/browser/prefs/browser_prefs.cc#newcode241 chrome/browser/prefs/browser_prefs.cc:241: extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); mention somewhere why this was moved out?
8 years, 4 months ago (2012-07-31 22:25:21 UTC) #3
nyquist
Added CL description about registering extension user preferences. Adding yfriedman@ for sanity check.
8 years, 4 months ago (2012-08-01 16:36:05 UTC) #4
nilesh
https://chromiumcodereview.appspot.com/10829019/diff/7002/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://chromiumcodereview.appspot.com/10829019/diff/7002/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode264 chrome/browser/sync/profile_sync_components_factory_impl.cc:264: return base::WeakPtr<syncer::SyncableService>(); Now that we are initializing extension system, ...
8 years, 4 months ago (2012-08-01 16:43:20 UTC) #5
nyquist
Addressed all comments. PTAL http://codereview.chromium.org/10829019/diff/7002/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): http://codereview.chromium.org/10829019/diff/7002/chrome/browser/prefs/browser_prefs.cc#newcode241 chrome/browser/prefs/browser_prefs.cc:241: extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); On 2012/07/31 22:25:22, akalin ...
8 years, 4 months ago (2012-08-02 18:28:17 UTC) #6
nilesh
On 2012/08/02 18:28:17, nyquist wrote: > Addressed all comments. PTAL > > http://codereview.chromium.org/10829019/diff/7002/chrome/browser/prefs/browser_prefs.cc > File ...
8 years, 4 months ago (2012-08-02 19:15:05 UTC) #7
nyquist
bauerb@ for chrome/browser/prefs
8 years, 4 months ago (2012-08-03 00:33:05 UTC) #8
Bernhard Bauer
LGTM
8 years, 4 months ago (2012-08-04 09:12:49 UTC) #9
akalin
On 2012/08/04 09:12:49, Bernhard Bauer wrote: > LGTM lgtm
8 years, 4 months ago (2012-08-07 00:45:59 UTC) #10
akalin
http://codereview.chromium.org/10829019/diff/7005/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): http://codereview.chromium.org/10829019/diff/7005/chrome/browser/prefs/browser_prefs.cc#newcode242 chrome/browser/prefs/browser_prefs.cc:242: extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); out of curiosity, where exactly is this needed? ...
8 years, 4 months ago (2012-08-07 00:49:05 UTC) #11
nilesh
http://codereview.chromium.org/10829019/diff/7005/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): http://codereview.chromium.org/10829019/diff/7005/chrome/browser/prefs/browser_prefs.cc#newcode242 chrome/browser/prefs/browser_prefs.cc:242: extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); On 2012/08/07 00:49:05, akalin wrote: > out of ...
8 years, 4 months ago (2012-08-07 16:42:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/10829019/7005
8 years, 4 months ago (2012-08-07 16:48:21 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/browser/prefs/browser_prefs.cc: While running patch -p1 --forward --force; patching file chrome/browser/prefs/browser_prefs.cc ...
8 years, 4 months ago (2012-08-07 16:48:22 UTC) #14
nilesh
http://codereview.chromium.org/10829019/diff/7005/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): http://codereview.chromium.org/10829019/diff/7005/chrome/browser/prefs/browser_prefs.cc#newcode242 chrome/browser/prefs/browser_prefs.cc:242: extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); Tommy, please move this up with the default ...
8 years, 4 months ago (2012-08-07 17:10:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/10829019/17002
8 years, 4 months ago (2012-08-08 00:12:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/10829019/17002
8 years, 4 months ago (2012-08-08 00:13:22 UTC) #17
commit-bot: I haz the power
Change committed as 150485
8 years, 4 months ago (2012-08-08 02:10:03 UTC) #18
nilesh
8 years, 4 months ago (2012-08-08 18:04:08 UTC) #19
Looks like this broke AutofillManagerTest.UpdatePasswordSyncState
which depends on password sync.

CRITICAL:root:AutofillManagerTest.UpdatePasswordSyncState
CRITICAL:root:08-08 02:58:40.421 30768 30768 I chromium:
[INFO:profile_sync_service.cc(1768)] ConfigureDataTypeManager not invoked
because backend is not initialized


08-08 02:58:40.421 30768 30768 I chromium: [INFO:profile_sync_service.cc(1768)]
ConfigureDataTypeManager not invoked because backend is not initialized


08-08 02:58:40.421 30768 30768 V chromium: *** Failure in
chrome/browser/autofill/autofill_manager_unittest.cc:2945


08-08 02:58:40.421 30768 30768 V chromium: Value of:
autofill_manager_->GetSentStates().size()


08-08 02:58:40.421 30768 30768 V chromium:   Actual: 0


08-08 02:58:40.421 30768 30768 V chromium: Expected: 1u


08-08 02:58:40.421 30768 30768 V chromium: Which is: 1

Powered by Google App Engine
This is Rietveld 408576698