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

Issue 6794005: Move sync notifier contruction out of syncer thread. (Closed)

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

Description

Move sync notifier contruction out of syncer thread. Add thread safety checks to ensure that all the methods are called on the same thread. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80724

Patch Set 1 #

Patch Set 2 : Remove the worker thread in P2P notifier. #

Patch Set 3 : Add cloud print proxy changes. #

Patch Set 4 : Minor fix. #

Total comments: 10

Patch Set 5 : Addressing comments and rebase. #

Total comments: 4

Patch Set 6 : Address comments. #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -63 lines) Patch
M chrome/browser/sync/engine/syncapi.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_unittest.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 5 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc View 1 2 3 4 7 chunks +19 lines, -9 lines 0 comments Download
M chrome/browser/sync/notifier/p2p_notifier.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/notifier/p2p_notifier.cc View 1 2 3 4 5 5 chunks +33 lines, -3 lines 0 comments Download
M chrome/browser/sync/notifier/sync_notifier.h View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_proxy_backend.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M jingle/notifier/listener/mediator_thread_impl.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M jingle/notifier/listener/mediator_thread_impl.cc View 1 2 3 4 9 chunks +23 lines, -11 lines 0 comments Download
M jingle/notifier/listener/talk_mediator_impl.h View 1 2 3 4 5 4 chunks +11 lines, -1 line 0 comments Download
M jingle/notifier/listener/talk_mediator_impl.cc View 1 2 3 4 9 chunks +24 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nilesh
Added a worker thread on P2PNotifier to satisfy thread safety constraints by TalkMediatorImpl and MediatorThreadImpl
9 years, 8 months ago (2011-04-04 18:11:07 UTC) #1
nilesh
Thanks for the feedback. I have relaxed the thread safety checks in TalkMediatorImpl and MediatorThreadImpl. ...
9 years, 8 months ago (2011-04-05 20:52:36 UTC) #2
akalin
Few comments http://codereview.chromium.org/6794005/diff/3030/chrome/browser/sync/engine/syncapi_unittest.cc File chrome/browser/sync/engine/syncapi_unittest.cc (right): http://codereview.chromium.org/6794005/diff/3030/chrome/browser/sync/engine/syncapi_unittest.cc#newcode656 chrome/browser/sync/engine/syncapi_unittest.cc:656: sync_notifier_mock_.reset(new StrictMock<SyncNotifierMock>()); need extra space in beginning ...
9 years, 8 months ago (2011-04-05 22:02:46 UTC) #3
nilesh
http://codereview.chromium.org/6794005/diff/3030/chrome/browser/sync/engine/syncapi_unittest.cc File chrome/browser/sync/engine/syncapi_unittest.cc (right): http://codereview.chromium.org/6794005/diff/3030/chrome/browser/sync/engine/syncapi_unittest.cc#newcode656 chrome/browser/sync/engine/syncapi_unittest.cc:656: sync_notifier_mock_.reset(new StrictMock<SyncNotifierMock>()); On 2011/04/05 22:02:46, akalin wrote: > need ...
9 years, 8 months ago (2011-04-05 23:36:17 UTC) #4
akalin
LGTM http://codereview.chromium.org/6794005/diff/2004/chrome/browser/sync/notifier/p2p_notifier.cc File chrome/browser/sync/notifier/p2p_notifier.cc (right): http://codereview.chromium.org/6794005/diff/2004/chrome/browser/sync/notifier/p2p_notifier.cc#newcode4 chrome/browser/sync/notifier/p2p_notifier.cc:4: // Move this note near the code in ...
9 years, 8 months ago (2011-04-06 20:35:26 UTC) #5
nilesh
Thanks for the review. http://codereview.chromium.org/6794005/diff/2004/chrome/browser/sync/notifier/p2p_notifier.cc File chrome/browser/sync/notifier/p2p_notifier.cc (right): http://codereview.chromium.org/6794005/diff/2004/chrome/browser/sync/notifier/p2p_notifier.cc#newcode4 chrome/browser/sync/notifier/p2p_notifier.cc:4: // On 2011/04/06 20:35:26, akalin ...
9 years, 8 months ago (2011-04-06 21:58:15 UTC) #6
commit-bot: I haz the power
9 years, 8 months ago (2011-04-07 00:08:19 UTC) #7
Change committed as 80724

Powered by Google App Engine
This is Rietveld 408576698