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

Issue 6995008: Implement new SyncAPI and convert Preferences to it. (Closed)

Created:
9 years, 7 months ago by Nicolas Zea
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), Paweł Hajdan Jr., idana
Visibility:
Public.

Description

Implement new SyncAPI and convert Preferences to it. BUG=76232 TEST=Everything sync. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86357

Patch Set 1 #

Patch Set 2 : Working patch. #

Patch Set 3 : Rebase and self review #

Patch Set 4 : Refactor++ #

Patch Set 5 : Foward Declare++ #

Total comments: 53

Patch Set 6 : rebase and comments #

Patch Set 7 : Fix #

Total comments: 20

Patch Set 8 : Comments #

Patch Set 9 : fix #

Patch Set 10 : Missing file. Also switch to CommitChanges #

Total comments: 14

Patch Set 11 : Addressed Comments #

Patch Set 12 : Rebase and fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1261 lines, -566 lines) Patch
M chrome/browser/prefs/pref_model_associator.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +78 lines, -74 lines 0 comments Download
M chrome/browser/prefs/pref_model_associator.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +192 lines, -239 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/browser/sync/api/sync_change.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/sync/api/sync_change.cc View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/sync/api/sync_change_processor.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A + chrome/browser/sync/api/sync_change_processor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
A chrome/browser/sync/api/sync_change_unittest.cc View 1 2 3 4 5 1 chunk +128 lines, -0 lines 0 comments Download
A chrome/browser/sync/api/sync_data.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/sync/api/sync_data.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/sync/api/syncable_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +48 lines, -0 lines 0 comments Download
A + chrome/browser/sync/api/syncable_service.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
A chrome/browser/sync/api/syncable_service_mock.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
A + chrome/browser/sync/api/syncable_service_mock.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +17 lines, -21 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncer_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncproto.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/sync/glue/change_processor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.h View 1 2 3 4 5 6 7 8 9 1 chunk +53 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.cc View 1 2 3 4 5 6 7 8 9 2 chunks +173 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller.cc View 1 3 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
A chrome/browser/sync/glue/syncable_service_adapter.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/syncable_service_adapter.cc View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_factory_impl.cc View 1 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 4 5 6 7 8 9 14 chunks +74 lines, -57 lines 0 comments Download
M chrome/browser/sync/syncable_service.h View 1 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/sync/syncable_service.cc View 1 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/browser/sync/syncable_service_mock.h View 1 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/sync/syncable_service_mock.cc View 1 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nicolas Zea
Very much WIP.
9 years, 7 months ago (2011-05-10 01:40:51 UTC) #1
tim (not reviewing)
Couple meta comments. Let's put this new stuff under its own directory in sync, such ...
9 years, 7 months ago (2011-05-10 02:19:56 UTC) #2
Nicolas Zea
The bulk of the changes are in pref_model_associator and generic_change_processor. In addition, I added/moved a ...
9 years, 7 months ago (2011-05-13 19:54:58 UTC) #3
akalin
Some initial comments (API only) http://codereview.chromium.org/6995008/diff/7002/chrome/browser/sync/api/sync_event.h File chrome/browser/sync/api/sync_event.h (right): http://codereview.chromium.org/6995008/diff/7002/chrome/browser/sync/api/sync_event.h#newcode13 chrome/browser/sync/api/sync_event.h:13: #include "chrome/browser/sync/api/sync_event_value.h" you can ...
9 years, 7 months ago (2011-05-13 21:53:19 UTC) #4
Nicolas Zea
Okay! Please take another look. Made the changes we discussed in splitting up SyncEvent from ...
9 years, 7 months ago (2011-05-18 01:40:47 UTC) #5
akalin
Looked through everything. Looks good overall, but a bunch of comments. http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): ...
9 years, 7 months ago (2011-05-19 00:58:45 UTC) #6
Nicolas Zea
Changes made and/or explanation given. Please take another look. http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc#newcode141 chrome/browser/prefs/pref_model_associator.cc:141: ...
9 years, 7 months ago (2011-05-19 21:17:45 UTC) #7
akalin
Replies. http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc#newcode283 chrome/browser/prefs/pref_model_associator.cc:283: bool PrefModelAssociator::GetAllSyncData(syncable::ModelType type, On 2011/05/19 21:17:45, nzea wrote: ...
9 years, 7 months ago (2011-05-20 00:08:05 UTC) #8
akalin
Few more comments. http://codereview.chromium.org/6995008/diff/17001/chrome/browser/sync/api/sync_data.cc File chrome/browser/sync/api/sync_data.cc (right): http://codereview.chromium.org/6995008/diff/17001/chrome/browser/sync/api/sync_data.cc#newcode8 chrome/browser/sync/api/sync_data.cc:8: sync_entity_.reset(sync_entity); On 2011/05/19 21:17:45, nzea wrote: ...
9 years, 7 months ago (2011-05-20 00:19:39 UTC) #9
Nicolas Zea
Comments addressed, PTAL. http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): http://codereview.chromium.org/6995008/diff/17001/chrome/browser/prefs/pref_model_associator.cc#newcode283 chrome/browser/prefs/pref_model_associator.cc:283: bool PrefModelAssociator::GetAllSyncData(syncable::ModelType type, On 2011/05/20 00:08:05, ...
9 years, 7 months ago (2011-05-20 02:00:27 UTC) #10
akalin
Few more things. (Getting close!) http://codereview.chromium.org/6995008/diff/32002/chrome/browser/sync/api/sync_data.cc File chrome/browser/sync/api/sync_data.cc (right): http://codereview.chromium.org/6995008/diff/32002/chrome/browser/sync/api/sync_data.cc#newcode10 chrome/browser/sync/api/sync_data.cc:10: scoped_ptr<sync_pb::SyncEntity>* sync_entity) { Change ...
9 years, 7 months ago (2011-05-21 00:57:58 UTC) #11
akalin
On 2011/05/21 00:57:58, akalin wrote: > Few more things. (Getting close!) Actually, I think these ...
9 years, 7 months ago (2011-05-21 00:58:55 UTC) #12
Mattias Nissler (ping if slow)
chrome/browser/pref changes LGTM if you answer/resolve my question below. http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h File chrome/browser/prefs/pref_model_associator.h (right): http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h#newcode57 chrome/browser/prefs/pref_model_associator.h:57: ...
9 years, 7 months ago (2011-05-21 18:17:52 UTC) #13
Nicolas Zea
Comments addressed. Checking in once bots are green. http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h File chrome/browser/prefs/pref_model_associator.h (right): http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h#newcode57 chrome/browser/prefs/pref_model_associator.h:57: // ...
9 years, 7 months ago (2011-05-23 18:13:26 UTC) #14
Mattias Nissler (ping if slow)
Still LGTM http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h File chrome/browser/prefs/pref_model_associator.h (right): http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h#newcode57 chrome/browser/prefs/pref_model_associator.h:57: // begins). On 2011/05/23 18:13:27, nzea wrote: ...
9 years, 7 months ago (2011-05-23 20:43:08 UTC) #15
tim (not reviewing)
http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h File chrome/browser/prefs/pref_model_associator.h (right): http://codereview.chromium.org/6995008/diff/32002/chrome/browser/prefs/pref_model_associator.h#newcode57 chrome/browser/prefs/pref_model_associator.h:57: // begins). On 2011/05/23 20:43:08, Mattias Nissler wrote: > ...
9 years, 7 months ago (2011-05-23 20:51:02 UTC) #16
commit-bot: I haz the power
9 years, 7 months ago (2011-05-23 22:41:18 UTC) #17
Can't process patch for file chrome/browser/sync/api/syncable_service_mock.cc.
A +

Powered by Google App Engine
This is Rietveld 408576698