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

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed)

Created:
8 years, 7 months ago by akalin
Modified:
8 years, 7 months ago
Reviewers:
rlarocque, gene
CC:
chromium-reviews
Visibility:
Public.

Description

[Sync] Replace TalkMediator*/MediatorThread* with PushClient Streamline methods of PushClient and its Observer subclass. Remove sync/protocol/service_constants.h and consolidate use of each constant in one place. Remove duplicate constant in cloud print code. BUG=76764 TEST= TBR=estade@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137615

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments, fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+660 lines, -1365 lines) Patch
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_consts.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_consts.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_proxy_backend.cc View 9 chunks +22 lines, -28 lines 0 comments Download
M jingle/jingle.gyp View 3 chunks +3 lines, -10 lines 0 comments Download
M jingle/notifier/base/notifier_options_util.h View 2 chunks +2 lines, -3 lines 0 comments Download
M jingle/notifier/base/notifier_options_util.cc View 2 chunks +2 lines, -3 lines 0 comments Download
D jingle/notifier/listener/mediator_thread.h View 1 chunk +0 lines, -63 lines 0 comments Download
D jingle/notifier/listener/mediator_thread_impl.h View 1 chunk +0 lines, -91 lines 0 comments Download
D jingle/notifier/listener/mediator_thread_impl.cc View 1 chunk +0 lines, -299 lines 0 comments Download
D jingle/notifier/listener/mediator_thread_mock.h View 1 chunk +0 lines, -68 lines 0 comments Download
D jingle/notifier/listener/mediator_thread_mock.cc View 1 chunk +0 lines, -85 lines 0 comments Download
D jingle/notifier/listener/mediator_thread_unittest.cc View 1 chunk +0 lines, -98 lines 0 comments Download
A jingle/notifier/listener/push_client.h View 1 1 chunk +98 lines, -0 lines 0 comments Download
A jingle/notifier/listener/push_client.cc View 1 1 chunk +320 lines, -0 lines 0 comments Download
A jingle/notifier/listener/push_client_unittest.cc View 1 1 chunk +105 lines, -0 lines 0 comments Download
D jingle/notifier/listener/talk_mediator.h View 1 chunk +0 lines, -61 lines 0 comments Download
D jingle/notifier/listener/talk_mediator_impl.h View 1 chunk +0 lines, -111 lines 0 comments Download
D jingle/notifier/listener/talk_mediator_impl.cc View 1 chunk +0 lines, -134 lines 0 comments Download
D jingle/notifier/listener/talk_mediator_unittest.cc View 1 chunk +0 lines, -171 lines 0 comments Download
M sync/engine/conflict_resolver.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/syncer_proto_util.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/internal_api/all_status.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/notifier/invalidation_notifier.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 2 chunks +1 line, -3 lines 0 comments Download
M sync/notifier/p2p_notifier.h View 1 5 chunks +22 lines, -13 lines 0 comments Download
M sync/notifier/p2p_notifier.cc View 1 6 chunks +28 lines, -34 lines 0 comments Download
M sync/notifier/p2p_notifier_unittest.cc View 1 9 chunks +50 lines, -46 lines 0 comments Download
M sync/notifier/sync_notifier_factory.cc View 1 2 chunks +1 line, -9 lines 0 comments Download
D sync/protocol/service_constants.h View 1 chunk +0 lines, -23 lines 0 comments Download
M sync/sync.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M sync/syncable/directory_backing_store.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/syncable/syncable.cc View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
akalin
+gene for cloud print stuff +rlarocque for everything else
8 years, 7 months ago (2012-05-16 02:04:53 UTC) #1
rlarocque
https://chromiumcodereview.appspot.com/10398051/diff/1/jingle/notifier/listener/push_client.cc File jingle/notifier/listener/push_client.cc (right): https://chromiumcodereview.appspot.com/10398051/diff/1/jingle/notifier/listener/push_client.cc#newcode27 jingle/notifier/listener/push_client.cc:27: class PushClient::Core There's a lot of scary thread code ...
8 years, 7 months ago (2012-05-16 17:46:00 UTC) #2
akalin
I missed the P2PNotifier unit tests. I will fix those. https://chromiumcodereview.appspot.com/10398051/diff/1/jingle/notifier/listener/push_client.cc File jingle/notifier/listener/push_client.cc (right): https://chromiumcodereview.appspot.com/10398051/diff/1/jingle/notifier/listener/push_client.cc#newcode27 ...
8 years, 7 months ago (2012-05-16 17:53:15 UTC) #3
rlarocque
LGTM, with one request (the DCHECK). https://chromiumcodereview.appspot.com/10398051/diff/1/jingle/notifier/listener/push_client.cc File jingle/notifier/listener/push_client.cc (right): https://chromiumcodereview.appspot.com/10398051/diff/1/jingle/notifier/listener/push_client.cc#newcode27 jingle/notifier/listener/push_client.cc:27: class PushClient::Core On ...
8 years, 7 months ago (2012-05-16 19:07:49 UTC) #4
akalin
All comments addressed and fixed unittests. http://codereview.chromium.org/10398051/diff/1/jingle/notifier/listener/push_client.cc File jingle/notifier/listener/push_client.cc (right): http://codereview.chromium.org/10398051/diff/1/jingle/notifier/listener/push_client.cc#newcode222 jingle/notifier/listener/push_client.cc:222: DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread()); On 2012/05/16 ...
8 years, 7 months ago (2012-05-16 22:47:41 UTC) #5
gene
lgtm for cloudprint
8 years, 7 months ago (2012-05-16 22:54:51 UTC) #6
rlarocque
http://codereview.chromium.org/10398051/diff/1/jingle/notifier/listener/push_client.cc File jingle/notifier/listener/push_client.cc (right): http://codereview.chromium.org/10398051/diff/1/jingle/notifier/listener/push_client.cc#newcode222 jingle/notifier/listener/push_client.cc:222: DCHECK(parent_message_loop_proxy_->BelongsToCurrentThread()); On 2012/05/16 22:47:42, akalin wrote: > On 2012/05/16 ...
8 years, 7 months ago (2012-05-16 23:04:31 UTC) #7
akalin
On 2012/05/16 23:04:31, rlarocque wrote: > Actually, I was hoping it could be done here. ...
8 years, 7 months ago (2012-05-16 23:06:52 UTC) #8
rlarocque
On 2012/05/16 23:06:52, akalin wrote: > On 2012/05/16 23:04:31, rlarocque wrote: > > Actually, I ...
8 years, 7 months ago (2012-05-16 23:08:23 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/10398051/11001
8 years, 7 months ago (2012-05-17 00:45:37 UTC) #10
commit-bot: I haz the power
Presubmit check for 10398051-11001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-17 00:45:57 UTC) #11
akalin
tbring estade for trivial changes in webui
8 years, 7 months ago (2012-05-17 00:47:21 UTC) #12
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 00:49:56 UTC) #13

Powered by Google App Engine
This is Rietveld 408576698