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

Issue 7745040: [Sync] Make P2PNotifier behave more like InvalidationNotifier (Closed)

Created:
9 years, 4 months ago by akalin
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, brettw-cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

[Sync] Make P2PNotifier behave more like InvalidationNotifier Encode the changed types into the XMPP push message and nudge only for those data types. Filter out notifications sent from the originating client. Instead of calling observers directly, synthesize a notification and send it to the server with target = self only. BUG=92928 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98551

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address comments #

Patch Set 3 : Add comment #

Patch Set 4 : Sync to head to appease commit-bot #

Patch Set 5 : fix copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+651 lines, -158 lines) Patch
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/internal_api/syncapi_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/notifier/invalidation_notifier.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/notifier/invalidation_notifier.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/notifier/invalidation_notifier_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/sync/notifier/p2p_notifier.h View 1 3 chunks +64 lines, -10 lines 0 comments Download
M chrome/browser/sync/notifier/p2p_notifier.cc View 1 2 4 chunks +191 lines, -34 lines 0 comments Download
A chrome/browser/sync/notifier/p2p_notifier_unittest.cc View 1 1 chunk +259 lines, -0 lines 0 comments Download
M chrome/browser/sync/notifier/sync_notifier.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/notifier/sync_notifier_factory.cc View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/sync/syncable/model_type.h View 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/sync/syncable/model_type.cc View 2 chunks +8 lines, -24 lines 0 comments Download
M chrome/browser/sync/syncable/model_type_payload_map.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type_payload_map.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type_payload_map_unittest.cc View 1 chunk +13 lines, -2 lines 0 comments Download
M chrome/browser/sync/syncable/model_type_unittest.cc View 2 chunks +11 lines, -18 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/live_sync/migration_errors_test.cc View 1 7 chunks +18 lines, -9 lines 0 comments Download
M jingle/notifier/listener/push_notifications_listen_task.cc View 1 2 3 4 4 chunks +25 lines, -26 lines 0 comments Download
M jingle/notifier/listener/push_notifications_send_update_task.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M jingle/notifier/listener/push_notifications_send_update_task_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
akalin
+evan for base/ stuff, +zea for everything else.
9 years, 4 months ago (2011-08-26 00:46:12 UTC) #1
Evan Martin
+stevenjb for the values.h heads-up, tfarina because he has been working on changing this http://codereview.chromium.org/7745040/diff/1/base/values.h ...
9 years, 4 months ago (2011-08-26 18:46:33 UTC) #2
akalin
http://codereview.chromium.org/7745040/diff/1/base/values.h File base/values.h (right): http://codereview.chromium.org/7745040/diff/1/base/values.h#newcode105 base/values.h:105: virtual bool GetAsDictionary(const DictionaryValue** out_value) const; On 2011/08/26 18:46:33, ...
9 years, 4 months ago (2011-08-26 18:56:42 UTC) #3
tfarina
http://codereview.chromium.org/7745040/diff/1/base/values.h File base/values.h (right): http://codereview.chromium.org/7745040/diff/1/base/values.h#newcode105 base/values.h:105: virtual bool GetAsDictionary(const DictionaryValue** out_value) const; On 2011/08/26 18:56:43, ...
9 years, 4 months ago (2011-08-26 18:59:05 UTC) #4
akalin
Okay. Is that a LGTM for the base/ changes? On Sat, Aug 27, 2011 at ...
9 years, 4 months ago (2011-08-26 19:54:59 UTC) #5
tfarina
On 2011/08/26 19:54:59, akalin wrote: > Okay. Is that a LGTM for the base/ changes? ...
9 years, 4 months ago (2011-08-26 19:56:44 UTC) #6
Evan Martin
You need Steven to sign off on this. Otherwise base LGTM
9 years, 4 months ago (2011-08-26 19:57:37 UTC) #7
stevenjb
Thanks Evan. This would in fact break ChromeOS again (boy, values.h is popular this week! ...
9 years, 4 months ago (2011-08-26 20:37:35 UTC) #8
akalin
On Sat, Aug 27, 2011 at 4:37 AM, <stevenjb@chromium.org> wrote: > Thanks Evan. This would ...
9 years, 4 months ago (2011-08-26 20:55:32 UTC) #9
Nicolas Zea
Some comments http://codereview.chromium.org/7745040/diff/1/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc File chrome/browser/sync/notifier/invalidation_notifier_unittest.cc (right): http://codereview.chromium.org/7745040/diff/1/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc#newcode37 chrome/browser/sync/notifier/invalidation_notifier_unittest.cc:37: invalidation_notifier_.reset(new InvalidationNotifier(notifier_options, If this takes ownership of ...
9 years, 4 months ago (2011-08-26 21:19:14 UTC) #10
akalin
Addressed all comments, reverted all base/ changes (and removed base/ reviewers). PTAL. http://codereview.chromium.org/7745040/diff/1/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc File chrome/browser/sync/notifier/invalidation_notifier_unittest.cc ...
9 years, 4 months ago (2011-08-26 22:42:27 UTC) #11
Nicolas Zea
LGTM
9 years, 4 months ago (2011-08-26 22:52:19 UTC) #12
commit-bot: I haz the power
Can't apply patch for file jingle/notifier/listener/push_notifications_listen_task.cc. While running patch -p1 --forward --force; patching file jingle/notifier/listener/push_notifications_listen_task.cc ...
9 years, 4 months ago (2011-08-26 23:45:48 UTC) #13
commit-bot: I haz the power
9 years, 4 months ago (2011-08-26 23:50:38 UTC) #14
Can't apply patch for file
jingle/notifier/listener/push_notifications_listen_task.cc.
While running patch -p1 --forward --force;
patching file jingle/notifier/listener/push_notifications_listen_task.cc
Hunk #2 FAILED at 47.
Hunk #3 FAILED at 86.
2 out of 3 hunks FAILED -- saving rejects to file
jingle/notifier/listener/push_notifications_listen_task.cc.rej

Powered by Google App Engine
This is Rietveld 408576698