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 10451058: sync: move invalidation version prefs out of SyncPrefs into InvalidatorStorage. (Closed)

Created:
8 years, 6 months ago by tim (not reviewing)
Modified:
8 years, 6 months ago
Reviewers:
rlarocque, akalin, nilesh
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

sync: move invalidation version prefs out of SyncPrefs into InvalidatorStorage. De-coupling so we don't add more sync < > invalidations deps while adding support for storing opaque notification state in InvalidationStateTracker. Added get/setters to InvalidationStateTracker and impl (InvalidatorStorage), but it's not wired up for use yet. Next step is to add migration code to move state from syncable::Directory to InvalidationStateTracker. Comment in invalidator_storage.h explains motivations for not moving out of sync. This patch creates the c/b/s/invalidations directory, which we can move non-profile-sync-specific chrome invalidations code to (such as BridgedSyncNotifier, and the android related part of ChromeSyncNotificationsBridge). BUG=124140 TEST=InvalidatorStorageTest, should be no functional changes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139464

Patch Set 1 : init #

Total comments: 10

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -123 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/sync/invalidations/invalidator_storage.h View 1 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/sync/invalidations/invalidator_storage.cc View 1 1 chunk +136 lines, -0 lines 0 comments Download
A chrome/browser/sync/invalidations/invalidator_storage_unittest.cc View 1 1 chunk +129 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 4 chunks +3 lines, -72 lines 0 comments Download
M chrome/browser/sync/sync_prefs_unittest.cc View 4 chunks +0 lines, -32 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M sync/notifier/chrome_invalidation_client_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/notifier/invalidation_state_tracker.h View 1 chunk +6 lines, -0 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.cc View 2 chunks +3 lines, -1 line 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
tim (not reviewing)
Nilesh, please review sync/notifier. Richard, please review everything else.
8 years, 6 months ago (2012-05-29 16:44:18 UTC) #1
tim (not reviewing)
+akalin FYI / TBR
8 years, 6 months ago (2012-05-29 16:58:31 UTC) #2
nilesh
On 2012/05/29 16:44:18, timsteele wrote: > Nilesh, please review sync/notifier. LGTM > Richard, please review ...
8 years, 6 months ago (2012-05-29 18:24:40 UTC) #3
rlarocque
A few suggestions. I'm most concerned about the 'if (!pref_service_)' cases in InvalidatorStorage, the rest ...
8 years, 6 months ago (2012-05-29 18:28:24 UTC) #4
tim (not reviewing)
Thanks for the reviews! Addressed first round of comments. http://codereview.chromium.org/10451058/diff/6002/chrome/browser/sync/invalidations/invalidator_storage.cc File chrome/browser/sync/invalidations/invalidator_storage.cc (right): http://codereview.chromium.org/10451058/diff/6002/chrome/browser/sync/invalidations/invalidator_storage.cc#newcode18 chrome/browser/sync/invalidations/invalidator_storage.cc:18: ...
8 years, 6 months ago (2012-05-29 23:17:31 UTC) #5
rlarocque
LGTM.
8 years, 6 months ago (2012-05-29 23:29:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10451058/14003
8 years, 6 months ago (2012-05-30 00:01:24 UTC) #7
commit-bot: I haz the power
8 years, 6 months ago (2012-05-30 02:34:55 UTC) #8
Change committed as 139464

Powered by Google App Engine
This is Rietveld 408576698