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

Issue 6621062: Refactor sync notifier out of sync api. (Closed)

Created:
9 years, 9 months ago by Agrawal
Modified:
9 years, 7 months ago
Reviewers:
akalin, lipalani
CC:
chromium-reviews, Raghu Simha, ncarter (slow), Paweł Hajdan Jr., tim (not reviewing), idana
Visibility:
Public.

Description

Refactor sync notifier out of sync api. We now have a clearly defined interface for notifier. Old p2p notifications are still used by tests. BUG= TEST=

Patch Set 1 #

Total comments: 24

Patch Set 2 : Add SendNotification method. #

Patch Set 3 : Address few comments (no interface changes). #

Patch Set 4 : Renamed SyncNotifierCallback to SyncNotifierObserver #

Patch Set 5 : Parsing Incoming notification data in the syncnotifier. #

Patch Set 6 : Fix build. #

Total comments: 32

Patch Set 7 : Split Login method and remove notification logic from syncapi. #

Total comments: 43

Patch Set 8 : Addressing comments. #

Total comments: 16

Patch Set 9 : Minox fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -331 lines) Patch
M chrome/browser/sync/engine/syncapi.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 5 6 7 8 29 chunks +73 lines, -235 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 4 chunks +1 line, -6 lines 0 comments Download
A chrome/browser/sync/notifier/sync_notifier.h View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/sync_notifier_factory.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/sync_notifier_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/sync_notifier_impl.h View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/sync_notifier_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +196 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/sync_notifier_observer.h View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 chunks +1 line, -67 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
akalin
Some initial comments. Thanks for doing this! http://codereview.chromium.org/6621062/diff/1/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6621062/diff/1/chrome/browser/sync/engine/syncapi.cc#newcode2590 chrome/browser/sync/engine/syncapi.cc:2590: scoped_ptr<SyncNotifierFactory> sync_notifier_factory( ...
9 years, 9 months ago (2011-03-08 02:48:30 UTC) #1
Agrawal
Addressed few comments. Working on the interface changes as suggested by Fred. http://codereview.chromium.org/6621062/diff/1/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc ...
9 years, 9 months ago (2011-03-08 23:07:28 UTC) #2
Agrawal
Renamed SyncNotifierCallback to SyncNotifierObserver. Added support for multiple observers. http://codereview.chromium.org/6621062/diff/1/chrome/browser/sync/notifier/sync_notifier.h File chrome/browser/sync/notifier/sync_notifier.h (right): http://codereview.chromium.org/6621062/diff/1/chrome/browser/sync/notifier/sync_notifier.h#newcode19 chrome/browser/sync/notifier/sync_notifier.h:19: ...
9 years, 9 months ago (2011-03-09 01:57:03 UTC) #3
akalin
> The data parsing also needs ModelSafeWorkerRegistrar for p2p > notifications. p2p notifications logic looks ...
9 years, 9 months ago (2011-03-09 02:07:25 UTC) #4
akalin
Should I wait for another upload or should I make another pass? :) On 2011/03/09 ...
9 years, 9 months ago (2011-03-09 22:39:40 UTC) #5
Agrawal
On Wed, Mar 9, 2011 at 2:39 PM, <akalin@chromium.org> wrote: > Should I wait for ...
9 years, 9 months ago (2011-03-09 23:08:09 UTC) #6
Agrawal
On Wed, Mar 9, 2011 at 2:39 PM, <akalin@chromium.org> wrote: > Should I wait for ...
9 years, 9 months ago (2011-03-09 23:15:27 UTC) #7
akalin
Looking better! A few more comments. http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc#newcode41 chrome/browser/sync/engine/syncapi.cc:41: #include "chrome/browser/sync/notifier/sync_notifier_observer.h" fix ...
9 years, 9 months ago (2011-03-10 04:26:45 UTC) #8
akalin
http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc#newcode2565 chrome/browser/sync/engine/syncapi.cc:2565: if (syncer_thread()) { On 2011/03/10 04:26:45, akalin wrote: > ...
9 years, 9 months ago (2011-03-10 22:10:29 UTC) #9
Agrawal
On Thu, Mar 10, 2011 at 2:10 PM, <akalin@chromium.org> wrote: > > > http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc > ...
9 years, 9 months ago (2011-03-10 22:50:02 UTC) #10
Agrawal
Thanks for the feedback. Addressed all comments. PTAL. http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6621062/diff/15001/chrome/browser/sync/engine/syncapi.cc#newcode41 chrome/browser/sync/engine/syncapi.cc:41: #include ...
9 years, 9 months ago (2011-03-11 01:13:07 UTC) #11
akalin
More comments, but I think i'm satisfied with the interface http://codereview.chromium.org/6621062/diff/17002/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (left): http://codereview.chromium.org/6621062/diff/17002/chrome/browser/sync/engine/syncapi.cc#oldcode1795 ...
9 years, 9 months ago (2011-03-11 04:17:14 UTC) #12
Agrawal
http://codereview.chromium.org/6621062/diff/17002/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (left): http://codereview.chromium.org/6621062/diff/17002/chrome/browser/sync/engine/syncapi.cc#oldcode1795 chrome/browser/sync/engine/syncapi.cc:1795: if (!talk_mediator()) { On 2011/03/11 04:17:14, akalin wrote: > ...
9 years, 9 months ago (2011-03-11 21:42:20 UTC) #13
akalin
LGTM after nits Make sure to put through the {linux,mac,win}_sync trybots, and keep an eye ...
9 years, 9 months ago (2011-03-11 22:27:43 UTC) #14
Agrawal
Thanks for the in-depth review and suggestions. http://codereview.chromium.org/6621062/diff/20001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6621062/diff/20001/chrome/browser/sync/engine/syncapi.cc#newcode2678 chrome/browser/sync/engine/syncapi.cc:2678: model_types_with_payloads = ...
9 years, 9 months ago (2011-03-11 22:54:26 UTC) #15
akalin
Patch for try/submit at http://codereview.chromium.org/6621062/ On 2011/03/11 22:54:26, nileshagrawal wrote: > Thanks for the in-depth ...
9 years, 9 months ago (2011-03-11 23:08:00 UTC) #16
akalin
Oops, I mean http://codereview.chromium.org/6683015/ On 2011/03/11 23:08:00, akalin wrote: > Patch for try/submit at http://codereview.chromium.org/6621062/ ...
9 years, 9 months ago (2011-03-11 23:10:18 UTC) #17
akalin
9 years, 9 months ago (2011-03-14 18:29:55 UTC) #18
Checked in in other patch

Powered by Google App Engine
This is Rietveld 408576698