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

Issue 10702074: Refactor sync-specific parts out of SyncNotifier/SyncNotifierObserver (Closed)

Created:
8 years, 5 months ago by dcheng
Modified:
8 years, 5 months ago
Reviewers:
akalin
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), Dmitry Titov, Pete Williamson
Visibility:
Public.

Description

Refactor sync-specific parts out of SyncNotifier/SyncNotifierObserver Sort of. SendNotification() is still there. Perhaps we want to split the interfaces completely. BUG=124149 TEST=tests should still pass, no observable behavior change Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147801 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148496 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148697

Patch Set 1 #

Patch Set 2 : More progress. #

Patch Set 3 : Add new files... oops #

Patch Set 4 : Merge #

Total comments: 5

Patch Set 5 : Minor cleanup #

Total comments: 10

Patch Set 6 : . #

Patch Set 7 : Hmm #

Patch Set 8 : Rawr #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : DEPS #

Total comments: 40

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : Base files missing? #

Patch Set 15 : Now with tests #

Total comments: 28

Patch Set 16 : Merge 1 #

Patch Set 17 : Merge 2 #

Patch Set 18 : Merge cleanup #

Patch Set 19 : Review changes #

Total comments: 2

Patch Set 20 : Dtor #

Patch Set 21 : Foo #

Patch Set 22 : FOR_THE_HORDE #

Total comments: 40

Patch Set 23 : . #

Patch Set 24 : Merge #

Patch Set 25 : Fix Android build #

Patch Set 26 : Fix Android build #

Patch Set 27 : . #

Patch Set 28 : . #

Patch Set 29 : Merge to HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+632 lines, -343 lines) Patch
M chrome/browser/sync/glue/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bridged_sync_notifier.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/bridged_sync_notifier.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -17 lines 0 comments Download
M chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +12 lines, -25 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 6 chunks +15 lines, -25 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 6 chunks +17 lines, -9 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +7 lines, -5 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 8 chunks +11 lines, -47 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +1 line, -6 lines 0 comments Download
M sync/notifier/invalidation_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +5 lines, -7 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +6 lines, -41 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +11 lines, -17 lines 0 comments Download
M sync/notifier/invalidation_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M sync/notifier/invalidation_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +26 lines, -0 lines 0 comments Download
M sync/notifier/mock_sync_notifier_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +5 lines, -7 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 8 chunks +27 lines, -40 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +13 lines, -11 lines 0 comments Download
A sync/notifier/object_id_payload_map.h View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A sync/notifier/object_id_payload_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +40 lines, -0 lines 0 comments Download
M sync/notifier/p2p_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +6 lines, -7 lines 0 comments Download
M sync/notifier/p2p_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 6 chunks +18 lines, -28 lines 0 comments Download
M sync/notifier/p2p_notifier_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 9 chunks +28 lines, -19 lines 0 comments Download
M sync/notifier/sync_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -4 lines 0 comments Download
M sync/notifier/sync_notifier_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -4 lines 0 comments Download
A sync/notifier/sync_notifier_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +55 lines, -0 lines 0 comments Download
A sync/notifier/sync_notifier_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +95 lines, -0 lines 0 comments Download
A sync/notifier/sync_notifier_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +156 lines, -0 lines 0 comments Download
M sync/notifier/sync_notifier_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -3 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +10 lines, -5 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
dcheng
http://codereview.chromium.org/10702074/diff/7001/sync/notifier/invalidation_notifier_unittest.cc File sync/notifier/invalidation_notifier_unittest.cc (right): http://codereview.chromium.org/10702074/diff/7001/sync/notifier/invalidation_notifier_unittest.cc#newcode77 sync/notifier/invalidation_notifier_unittest.cc:77: // clearing its object IDs. I expect to put ...
8 years, 5 months ago (2012-07-10 19:15:25 UTC) #1
akalin
Some high-level comments. Also re. SendNotification, we don't have to take care of it in ...
8 years, 5 months ago (2012-07-11 00:10:24 UTC) #2
dcheng
http://codereview.chromium.org/10702074/diff/7001/sync/sync.gyp File sync/sync.gyp (right): http://codereview.chromium.org/10702074/diff/7001/sync/sync.gyp#newcode36 sync/sync.gyp:36: '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation', On 2012/07/11 00:10:24, akalin wrote: > On 2012/07/10 ...
8 years, 5 months ago (2012-07-11 05:45:28 UTC) #3
akalin
http://codereview.chromium.org/10702074/diff/11001/sync/notifier/invalidation_notifier_base.cc File sync/notifier/invalidation_notifier_base.cc (right): http://codereview.chromium.org/10702074/diff/11001/sync/notifier/invalidation_notifier_base.cc#newcode25 sync/notifier/invalidation_notifier_base.cc:25: if (observers_.might_have_observers()) { On 2012/07/11 05:45:28, dcheng wrote: > ...
8 years, 5 months ago (2012-07-11 20:27:02 UTC) #4
akalin
On 2012/07/11 05:45:28, dcheng wrote: > Done. I think it makes more sense the other ...
8 years, 5 months ago (2012-07-11 20:29:22 UTC) #5
dcheng
PTAL. I've updated the change to use UpdateRegisteredIds() per our discussions. There are two (hopefully) ...
8 years, 5 months ago (2012-07-18 22:00:19 UTC) #6
akalin
Looking good! More comments http://codereview.chromium.org/10702074/diff/25001/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc File chrome/browser/sync/glue/chrome_sync_notification_bridge.cc (right): http://codereview.chromium.org/10702074/diff/25001/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc#newcode68 chrome/browser/sync/glue/chrome_sync_notification_bridge.cc:68: helper_.DispatchInvalidationsToHandlers( this won't work. the ...
8 years, 5 months ago (2012-07-19 00:42:06 UTC) #7
dcheng
Please ignore the incomplete test. I mainly addressed your review comments in this patch, and ...
8 years, 5 months ago (2012-07-19 18:31:04 UTC) #8
akalin
replying to comments, will wait for your next patch http://codereview.chromium.org/10702074/diff/25001/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc File chrome/browser/sync/glue/chrome_sync_notification_bridge.cc (right): http://codereview.chromium.org/10702074/diff/25001/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc#newcode68 chrome/browser/sync/glue/chrome_sync_notification_bridge.cc:68: ...
8 years, 5 months ago (2012-07-19 23:07:26 UTC) #9
dcheng
Now with a test. http://codereview.chromium.org/10702074/diff/25001/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc File chrome/browser/sync/glue/chrome_sync_notification_bridge.cc (right): http://codereview.chromium.org/10702074/diff/25001/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc#newcode68 chrome/browser/sync/glue/chrome_sync_notification_bridge.cc:68: helper_.DispatchInvalidationsToHandlers( On 2012/07/19 23:07:26, akalin ...
8 years, 5 months ago (2012-07-20 00:57:04 UTC) #10
akalin
more SyncNotifierHelper comments http://codereview.chromium.org/10702074/diff/28004/sync/notifier/sync_notifier_helper.cc File sync/notifier/sync_notifier_helper.cc (right): http://codereview.chromium.org/10702074/diff/28004/sync/notifier/sync_notifier_helper.cc#newcode19 sync/notifier/sync_notifier_helper.cc:19: ObjectIdSet registered_ids; why not just initialize ...
8 years, 5 months ago (2012-07-20 19:01:40 UTC) #11
akalin
Moar comments http://codereview.chromium.org/10702074/diff/28004/sync/notifier/non_blocking_invalidation_notifier.cc File sync/notifier/non_blocking_invalidation_notifier.cc (right): http://codereview.chromium.org/10702074/diff/28004/sync/notifier/non_blocking_invalidation_notifier.cc#newcode199 sync/notifier/non_blocking_invalidation_notifier.cc:199: // SyncNotifierHelper::UpdateRegisteredIds updates its internal Yeah, maybe ...
8 years, 5 months ago (2012-07-20 19:04:54 UTC) #12
akalin
http://codereview.chromium.org/10702074/diff/28004/sync/notifier/sync_notifier_helper.cc File sync/notifier/sync_notifier_helper.cc (right): http://codereview.chromium.org/10702074/diff/28004/sync/notifier/sync_notifier_helper.cc#newcode35 sync/notifier/sync_notifier_helper.cc:35: insert_it = id_to_handler_map_.insert(insert_it, On 2012/07/20 19:01:40, akalin wrote: > ...
8 years, 5 months ago (2012-07-20 19:34:38 UTC) #13
akalin
On 2012/07/20 19:34:38, akalin wrote: > http://codereview.chromium.org/10702074/diff/28004/sync/notifier/sync_notifier_helper.cc > File sync/notifier/sync_notifier_helper.cc (right): > > http://codereview.chromium.org/10702074/diff/28004/sync/notifier/sync_notifier_helper.cc#newcode35 > ...
8 years, 5 months ago (2012-07-20 19:46:51 UTC) #14
akalin
My patch landed as 147717, so you should be able to rebase on that and ...
8 years, 5 months ago (2012-07-20 21:07:13 UTC) #15
dcheng
On 2012/07/20 21:07:13, akalin wrote: > My patch landed as 147717, so you should be ...
8 years, 5 months ago (2012-07-20 21:13:33 UTC) #16
dcheng
http://codereview.chromium.org/10702074/diff/28004/sync/notifier/non_blocking_invalidation_notifier.cc File sync/notifier/non_blocking_invalidation_notifier.cc (right): http://codereview.chromium.org/10702074/diff/28004/sync/notifier/non_blocking_invalidation_notifier.cc#newcode199 sync/notifier/non_blocking_invalidation_notifier.cc:199: // SyncNotifierHelper::UpdateRegisteredIds updates its internal On 2012/07/20 19:04:54, akalin ...
8 years, 5 months ago (2012-07-21 00:09:54 UTC) #17
akalin
On 2012/07/21 00:09:54, dcheng wrote: > Is there a way to make CHECKS non-fatal for ...
8 years, 5 months ago (2012-07-21 00:15:39 UTC) #18
akalin
http://codereview.chromium.org/10702074/diff/25062/sync/notifier/sync_notifier_helper.h File sync/notifier/sync_notifier_helper.h (right): http://codereview.chromium.org/10702074/diff/25062/sync/notifier/sync_notifier_helper.h#newcode25 sync/notifier/sync_notifier_helper.h:25: clang is complaining saying that you need an explicit ...
8 years, 5 months ago (2012-07-21 00:16:29 UTC) #19
dcheng
On 2012/07/21 00:15:39, akalin wrote: > On 2012/07/21 00:09:54, dcheng wrote: > > Is there ...
8 years, 5 months ago (2012-07-21 00:20:14 UTC) #20
akalin
On Fri, Jul 20, 2012 at 5:20 PM, <dcheng@chromium.org> wrote: > On 2012/07/21 00:15:39, akalin ...
8 years, 5 months ago (2012-07-21 00:23:02 UTC) #21
dcheng
On 2012/07/21 00:23:02, akalin wrote: > Right. I think we should just CHECK and avoid ...
8 years, 5 months ago (2012-07-21 00:32:29 UTC) #22
akalin
On Fri, Jul 20, 2012 at 5:32 PM, <dcheng@chromium.org> wrote: > Our current behavior is ...
8 years, 5 months ago (2012-07-21 00:35:40 UTC) #23
dcheng
On 2012/07/21 00:35:40, akalin wrote: > On Fri, Jul 20, 2012 at 5:32 PM, <mailto:dcheng@chromium.org> ...
8 years, 5 months ago (2012-07-21 00:41:09 UTC) #24
akalin
On 2012/07/21 00:41:09, dcheng wrote: > OK... well, I don't really like encouraging the behavior, ...
8 years, 5 months ago (2012-07-21 00:42:35 UTC) #25
akalin
LGTM after nits!! http://codereview.chromium.org/10702074/diff/32090/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc File chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc (right): http://codereview.chromium.org/10702074/diff/32090/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc#newcode78 chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc:78: EXPECT_CALL(*mock_delegate_, UpdateRegisteredIds( expect on the mock_bridge_ ...
8 years, 5 months ago (2012-07-21 01:09:47 UTC) #26
akalin
forgot one http://codereview.chromium.org/10702074/diff/32090/sync/notifier/non_blocking_invalidation_notifier.cc File sync/notifier/non_blocking_invalidation_notifier.cc (right): http://codereview.chromium.org/10702074/diff/32090/sync/notifier/non_blocking_invalidation_notifier.cc#newcode189 sync/notifier/non_blocking_invalidation_notifier.cc:189: const ObjectIdSet& registered_ids = helper_.UpdateRegisteredIds(handler, ids); actually, ...
8 years, 5 months ago (2012-07-21 01:14:09 UTC) #27
dcheng
http://codereview.chromium.org/10702074/diff/32090/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc File chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc (right): http://codereview.chromium.org/10702074/diff/32090/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc#newcode78 chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc:78: EXPECT_CALL(*mock_delegate_, UpdateRegisteredIds( On 2012/07/21 01:09:47, akalin wrote: > expect ...
8 years, 5 months ago (2012-07-21 14:06:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10702074/29102
8 years, 5 months ago (2012-07-21 14:07:18 UTC) #29
commit-bot: I haz the power
Try job failure for 10702074-29102 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 5 months ago (2012-07-21 14:38:52 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10702074/28010
8 years, 5 months ago (2012-07-21 18:03:54 UTC) #31
commit-bot: I haz the power
Change committed as 147801
8 years, 5 months ago (2012-07-21 19:40:35 UTC) #32
akalin
On 2012/07/21 19:40:35, I haz the power (commit-bot) wrote: > Change committed as 147801 Rebase ...
8 years, 5 months ago (2012-07-24 03:31:51 UTC) #33
dcheng
I've rebased this on top of https://chromiumcodereview.appspot.com/10817023/ and I'm sending it to the trybots. I've ...
8 years, 5 months ago (2012-07-24 19:01:34 UTC) #34
akalin
On 2012/07/24 19:01:34, dcheng wrote: > I've rebased this on top of https://chromiumcodereview.appspot.com/10817023/ and > ...
8 years, 5 months ago (2012-07-25 19:56:50 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10702074/35008
8 years, 5 months ago (2012-07-25 19:57:08 UTC) #36
commit-bot: I haz the power
Failed to apply patch for sync/notifier/p2p_notifier.cc: While running patch -p1 --forward --force; patching file sync/notifier/p2p_notifier.cc ...
8 years, 5 months ago (2012-07-25 19:57:24 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10702074/42001
8 years, 5 months ago (2012-07-25 22:00:22 UTC) #38
commit-bot: I haz the power
Try job failure for 10702074-42001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-25 23:14:37 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10702074/42001
8 years, 5 months ago (2012-07-25 23:19:40 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10702074/42001
8 years, 5 months ago (2012-07-26 02:36:59 UTC) #41
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 02:37:53 UTC) #42
Change committed as 148496

Powered by Google App Engine
This is Rietveld 408576698