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

Issue 11046008: [Invalidations] Require there to be no registered handlers on Invalidator destruction (Closed)

Created:
8 years, 2 months ago by akalin
Modified:
8 years, 2 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Raghu Simha, haitaol1, tim (not reviewing)
Visibility:
Public.

Description

[Invalidations] Require there to be no registered handlers on Invalidator destruction Add CHECK to catch sloppy clients. Make ProfileSyncService destroy its invalidator registrar on shut down (also to catch sloppy clients). Comment on expected usage of Initialize() and Shutdown(), and add DCHECKs for them. Fix Invalidator test template to unregister handlers properly. Also fix some ProfileSyncService tests. BUG=137086 TBR=tim@chromium.org,arv@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=160420

Patch Set 1 #

Patch Set 2 : Fix typo #

Patch Set 3 : Strengthen language #

Patch Set 4 : Rebase on https://codereview.chromium.org/11050015 #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase properly #

Patch Set 7 : Fix tests #

Patch Set 8 : Sync to HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -21 lines) Patch
M chrome/browser/signin/signin_tracker_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/invalidation_frontend.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 6 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 7 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M sync/notifier/invalidator.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M sync/notifier/invalidator_registrar.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M sync/notifier/invalidator_registrar.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M sync/notifier/invalidator_registrar_unittest.cc View 1 2 3 4 5 6 7 2 chunks +22 lines, -5 lines 0 comments Download
M sync/notifier/invalidator_test_template.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
akalin
+zea for review
8 years, 2 months ago (2012-10-02 21:59:00 UTC) #1
akalin
On 2012/10/02 21:59:00, akalin wrote: > +zea for review Hold off on this, I guess. ...
8 years, 2 months ago (2012-10-03 18:03:11 UTC) #2
akalin
Okay, rebased on http://codereview.chromium.org/11046008/ which should fix the integration test failures. Ready for review!
8 years, 2 months ago (2012-10-03 18:42:42 UTC) #3
Nicolas Zea
Looks like syncsetuphandler's unit test is breaking still?
8 years, 2 months ago (2012-10-03 22:51:27 UTC) #4
akalin
Okay, I fixed those, PTAL.
8 years, 2 months ago (2012-10-04 00:05:33 UTC) #5
Nicolas Zea
lgtm
8 years, 2 months ago (2012-10-04 00:10:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/11046008/30006
8 years, 2 months ago (2012-10-05 06:57:01 UTC) #7
commit-bot: I haz the power
Presubmit check for 11046008-30006 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-05 06:57:07 UTC) #8
akalin
TBRing tim, arv
8 years, 2 months ago (2012-10-05 16:05:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/11046008/30006
8 years, 2 months ago (2012-10-05 16:05:50 UTC) #10
commit-bot: I haz the power
8 years, 2 months ago (2012-10-05 17:34:02 UTC) #11
Retried try job too often for step(s) interactive_ui_tests

Powered by Google App Engine
This is Rietveld 408576698