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

Issue 10916131: [Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} (Closed)

Created:
8 years, 3 months ago by akalin
Modified:
8 years, 3 months ago
CC:
chromium-reviews, ncarter (slow), mihaip-chromium-reviews_chromium.org, akalin, Raghu Simha, Aaron Boodman, tim (not reviewing), qfel
Visibility:
Public.

Description

[Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} Combine OnNotifications{Enabled,Disabled}() into OnInvalidatorStateChange(). Replace NotificationsDisabledReason with InvalidatorState. Rename OnIncomingNotification to OnIncomingInvalidation. Also change some references of "notification" to "invalidation". Set the initial invalidator state in ChromeToMobileService. Also remove OnNotificationsEnabled() call from OnIncomingInvalidation(). Instantiate InvalidatorTest template for ProfileSyncService. Move comments for invalidation-related functions from ProfileSyncService to InvalidatorFrontend. Put DISALLOW_COPY_AND_ASSIGN on some classes. Fix comment in invalidator.h. BUG=142475 TBR=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155448

Patch Set 1 #

Patch Set 2 : Fix compile error #

Total comments: 4

Patch Set 3 : Sync to head #

Patch Set 4 : Renamed test harness class #

Patch Set 5 : Fix android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1031 lines, -983 lines) Patch
M chrome/browser/chrome_to_mobile_service.h View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/chrome_to_mobile_service.cc View 1 2 2 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/bridged_invalidator.h View 3 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/bridged_invalidator.cc View 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/bridged_invalidator_unittest.cc View 5 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.cc View 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 7 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 6 chunks +29 lines, -34 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 4 chunks +18 lines, -36 lines 0 comments Download
M chrome/browser/sync/invalidation_frontend.h View 2 chunks +42 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 2 chunks +6 lines, -50 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 12 chunks +243 lines, -144 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 chunk +6 lines, -10 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 2 chunks +5 lines, -9 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 4 chunks +5 lines, -10 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 7 chunks +29 lines, -39 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 5 chunks +14 lines, -20 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 4 chunks +9 lines, -24 lines 0 comments Download
M sync/notifier/fake_invalidation_handler.h View 2 chunks +13 lines, -12 lines 0 comments Download
M sync/notifier/fake_invalidation_handler.cc View 1 chunk +15 lines, -21 lines 0 comments Download
M sync/notifier/fake_invalidator.h View 1 chunk +5 lines, -5 lines 0 comments Download
M sync/notifier/fake_invalidator.cc View 3 chunks +9 lines, -10 lines 0 comments Download
M sync/notifier/fake_invalidator_unittest.cc View 1 chunk +5 lines, -9 lines 0 comments Download
M sync/notifier/invalidation_handler.h View 1 chunk +13 lines, -17 lines 0 comments Download
M sync/notifier/invalidation_notifier.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 1 2 3 chunks +9 lines, -10 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 1 chunk +4 lines, -8 lines 0 comments Download
M sync/notifier/invalidator.h View 4 chunks +8 lines, -2 lines 0 comments Download
M sync/notifier/invalidator_factory_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/invalidator_registrar.h View 2 chunks +11 lines, -4 lines 0 comments Download
M sync/notifier/invalidator_registrar.cc View 3 chunks +10 lines, -9 lines 0 comments Download
M sync/notifier/invalidator_registrar_unittest.cc View 1 5 chunks +13 lines, -10 lines 0 comments Download
A sync/notifier/invalidator_state.h View 1 chunk +37 lines, -0 lines 0 comments Download
A sync/notifier/invalidator_state.cc View 1 chunk +55 lines, -0 lines 0 comments Download
M sync/notifier/invalidator_test_template.h View 9 chunks +102 lines, -78 lines 0 comments Download
A sync/notifier/invalidator_test_template.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M sync/notifier/non_blocking_invalidator.h View 1 chunk +5 lines, -6 lines 0 comments Download
M sync/notifier/non_blocking_invalidator.cc View 4 chunks +20 lines, -29 lines 0 comments Download
M sync/notifier/non_blocking_invalidator_unittest.cc View 1 chunk +5 lines, -9 lines 0 comments Download
D sync/notifier/notifications_disabled_reason.h View 1 chunk +0 lines, -35 lines 0 comments Download
D sync/notifier/notifications_disabled_reason.cc View 1 chunk +0 lines, -56 lines 0 comments Download
M sync/notifier/p2p_invalidator.h View 6 chunks +9 lines, -8 lines 0 comments Download
M sync/notifier/p2p_invalidator.cc View 9 chunks +20 lines, -15 lines 0 comments Download
M sync/notifier/p2p_invalidator_unittest.cc View 8 chunks +45 lines, -47 lines 0 comments Download
M sync/notifier/sync_invalidation_listener.h View 1 2 4 chunks +6 lines, -10 lines 0 comments Download
M sync/notifier/sync_invalidation_listener.cc View 1 2 5 chunks +21 lines, -25 lines 0 comments Download
M sync/notifier/sync_invalidation_listener_unittest.cc View 1 2 8 chunks +32 lines, -48 lines 0 comments Download
M sync/sync.gyp View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 1 chunk +7 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
akalin
rlarocque is the lucky winner! (+rlarocque for sync/ and c/b/sync review) +msw for chrome_to_mobile stuff ...
8 years, 3 months ago (2012-09-06 00:00:11 UTC) #1
dcheng
c/b/e/push_messaging LGTM.
8 years, 3 months ago (2012-09-06 00:07:19 UTC) #2
msw
c/b/chrome_to_mobile_service.[h|cc] LGTM with a nit. http://codereview.chromium.org/10916131/diff/2001/chrome/browser/chrome_to_mobile_service.cc File chrome/browser/chrome_to_mobile_service.cc (right): http://codereview.chromium.org/10916131/diff/2001/chrome/browser/chrome_to_mobile_service.cc#newcode187 chrome/browser/chrome_to_mobile_service.cc:187: sync_invalidation_enabled_ = nit: move ...
8 years, 3 months ago (2012-09-06 00:43:48 UTC) #3
rlarocque
LGTM. http://codereview.chromium.org/10916131/diff/2001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10916131/diff/2001/chrome/browser/sync/glue/sync_backend_host.cc#newcode1087 chrome/browser/sync/glue/sync_backend_host.cc:1087: #if defined(OS_ANDROID) :( I'm guessing there's no easy ...
8 years, 3 months ago (2012-09-06 17:50:34 UTC) #4
akalin
Committing soon http://codereview.chromium.org/10916131/diff/2001/chrome/browser/chrome_to_mobile_service.cc File chrome/browser/chrome_to_mobile_service.cc (right): http://codereview.chromium.org/10916131/diff/2001/chrome/browser/chrome_to_mobile_service.cc#newcode187 chrome/browser/chrome_to_mobile_service.cc:187: sync_invalidation_enabled_ = On 2012/09/06 00:43:48, msw wrote: ...
8 years, 3 months ago (2012-09-06 20:30:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10916131/3004
8 years, 3 months ago (2012-09-06 20:31:22 UTC) #6
commit-bot: I haz the power
Presubmit check for 10916131-3004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-06 20:31:46 UTC) #7
akalin
+brettw for chrome/ OWNERS +yoz for c/b/extensions OWNERS although chrome_to_mobile probably should have its own ...
8 years, 3 months ago (2012-09-06 20:42:59 UTC) #8
Yoyo Zhou
rubber-stamp LGTM
8 years, 3 months ago (2012-09-06 21:08:30 UTC) #9
akalin
TBRing brettw since it just needs a rubberstamp anyway.
8 years, 3 months ago (2012-09-06 23:45:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10916131/7003
8 years, 3 months ago (2012-09-06 23:45:32 UTC) #11
commit-bot: I haz the power
Try job failure for 10916131-7003 (retry) on win_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-07 04:31:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10916131/7003
8 years, 3 months ago (2012-09-07 04:33:05 UTC) #13
commit-bot: I haz the power
Try job failure for 10916131-7003 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-07 06:26:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10916131/7003
8 years, 3 months ago (2012-09-07 08:34:29 UTC) #15
commit-bot: I haz the power
Try job failure for 10916131-7003 (retry) on mac_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-07 10:41:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10916131/7003
8 years, 3 months ago (2012-09-07 17:14:23 UTC) #17
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 17:31:55 UTC) #18
Try job failure for 10916131-7003 (retry) on linux_clang for step "compile"
(clobber build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clan...

Powered by Google App Engine
This is Rietveld 408576698