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

Issue 23129007: sync: Add GetAllSyncData to sync/api (Closed)

Created:
7 years, 4 months ago by tim (not reviewing)
Modified:
7 years, 3 months ago
Reviewers:
Nicolas Zea, sky
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, haitaol+watch_chromium.org, rpetterson, browser-components-watch_chromium.org, rouslan+spellwatch_chromium.org, pam+watch_chromium.org, groby+spellwatch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, Nicolas Zea
Visibility:
Public.

Description

sync: Add GetAllSyncData to sync/api This allows datatype SyncableServices to request a fresh copy of the data that was previously only passed over in batch form during MergeDataAndStartSyncing. Since it can be slow, it should be used sparingly. Though currently unused, Sessions will soon need this behavior to deal with cases where (e.g) the local session is deleted by a foreign client, thereby corrupting TabNodePool tracking and requiring a full re-association. TBR=zea@chromium.org ^Many function signature touchups under browser/ BUG=98892 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221540

Patch Set 1 : #

Total comments: 7

Patch Set 2 : GCP changes #

Patch Set 3 : with proper tracking branch #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : add GetAllSyncDataReturnError #

Total comments: 6

Patch Set 7 : fix bug in NUIDTC::StartAssociationWithSharedChangeProcessor #

Patch Set 8 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -66 lines) Patch
M chrome/browser/extensions/api/storage/settings_apitest.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_unittest.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/history/typed_url_syncable_service_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_sync_service_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/managed_mode_policy_provider_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/fake_generic_change_processor.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/fake_generic_change_processor.cc View 1 2 3 4 5 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/favicon_cache_unittest.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.cc View 1 2 3 4 5 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor_unittest.cc View 1 3 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/non_ui_data_type_controller.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/non_ui_data_type_controller_unittest.cc View 1 2 3 4 5 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor.h View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor.cc View 1 2 3 4 5 2 chunks +23 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor_mock.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor_ref.h View 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor_ref.cc View 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/ui_data_type_controller.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/themes/theme_syncable_service_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M sync/api/sync_change_processor.h View 2 2 chunks +10 lines, -0 lines 0 comments Download
M sync/api/syncable_service.h View 2 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tim (not reviewing)
7 years, 4 months ago (2013-08-16 20:45:40 UTC) #1
haitaol1
https://codereview.chromium.org/23129007/diff/3001/sync/api/sync_change_processor.h File sync/api/sync_change_processor.h (right): https://codereview.chromium.org/23129007/diff/3001/sync/api/sync_change_processor.h#newcode48 sync/api/sync_change_processor.h:48: virtual SyncDataList GetAllSyncData(ModelType type) const = 0; Should we ...
7 years, 4 months ago (2013-08-19 17:11:03 UTC) #2
tim (not reviewing)
Thanks for the review. https://codereview.chromium.org/23129007/diff/3001/sync/api/sync_change_processor.h File sync/api/sync_change_processor.h (right): https://codereview.chromium.org/23129007/diff/3001/sync/api/sync_change_processor.h#newcode48 sync/api/sync_change_processor.h:48: virtual SyncDataList GetAllSyncData(ModelType type) const ...
7 years, 4 months ago (2013-08-19 18:03:07 UTC) #3
haitaol1
https://codereview.chromium.org/23129007/diff/3001/chrome/browser/sync/glue/generic_change_processor.h File chrome/browser/sync/glue/generic_change_processor.h (right): https://codereview.chromium.org/23129007/diff/3001/chrome/browser/sync/glue/generic_change_processor.h#newcode68 chrome/browser/sync/glue/generic_change_processor.h:68: virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) This seems redundant with GetSyncDataForType(). ...
7 years, 4 months ago (2013-08-19 21:20:06 UTC) #4
tim (not reviewing)
> zea as Haitao is out. I implemented (3) described below, which is what we ...
7 years, 3 months ago (2013-09-04 23:47:56 UTC) #5
Nicolas Zea
LGTM with nits https://codereview.chromium.org/23129007/diff/111001/chrome/browser/sync/glue/generic_change_processor.h File chrome/browser/sync/glue/generic_change_processor.h (right): https://codereview.chromium.org/23129007/diff/111001/chrome/browser/sync/glue/generic_change_processor.h#newcode72 chrome/browser/sync/glue/generic_change_processor.h:72: // of GenericChangeProcessor that may need ...
7 years, 3 months ago (2013-09-05 00:13:07 UTC) #6
tim (not reviewing)
Thanks for the review. https://codereview.chromium.org/23129007/diff/111001/chrome/browser/sync/glue/generic_change_processor.h File chrome/browser/sync/glue/generic_change_processor.h (right): https://codereview.chromium.org/23129007/diff/111001/chrome/browser/sync/glue/generic_change_processor.h#newcode72 chrome/browser/sync/glue/generic_change_processor.h:72: // of GenericChangeProcessor that may ...
7 years, 3 months ago (2013-09-05 00:22:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/23129007/67031
7 years, 3 months ago (2013-09-05 00:24:28 UTC) #8
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=82889
7 years, 3 months ago (2013-09-05 01:41:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/23129007/67031
7 years, 3 months ago (2013-09-05 05:19:35 UTC) #10
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=83046
7 years, 3 months ago (2013-09-05 05:46:19 UTC) #11
tim (not reviewing)
7 years, 3 months ago (2013-09-05 23:30:08 UTC) #12
Message was sent while issue was closed.
Committed patchset #8 manually as r221540 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698