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

Issue 984001: Force TalkMediator::Logout to wait until the Login task has been destroyed an... (Closed)

Created:
10 years, 9 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
Reviewers:
akalin
CC:
chromium-reviews, ncarter (slow), ben+cc_chromium.org, idana
Visibility:
Public.

Description

Change MediatorThreadImpl::Run to process messages forever and periodically call PumpAuxiliaryLoops to run the 3 (!!:(!!) other loops associated with this thread. There was previously a race where quit would be called and set a cancellation flag before the posted task would get executed. BUG=37771 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41724

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -17 lines) Patch
M chrome/browser/sync/engine/syncapi.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/notifier/listener/mediator_thread_impl.h View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/notifier/listener/mediator_thread_impl.cc View 1 2 3 4 5 3 chunks +30 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tim (not reviewing)
Hey Fred, this fixes the crash we were seeing. The only thing is we always ...
10 years, 9 months ago (2010-03-15 17:21:09 UTC) #1
tim (not reviewing)
changed to process messages forever on the libjingle loop with periodic delayed-posts of a helper ...
10 years, 9 months ago (2010-03-15 21:33:04 UTC) #2
akalin
Some comments, also update CL description http://codereview.chromium.org/984001/diff/8002/20001 File chrome/browser/sync/notifier/listener/mediator_thread_impl.cc (right): http://codereview.chromium.org/984001/diff/8002/20001#newcode62 chrome/browser/sync/notifier/listener/mediator_thread_impl.cc:62: PostDelayed(100, this, CMD_PUMP_AUXILIARY_LOOPS); ...
10 years, 9 months ago (2010-03-15 21:46:31 UTC) #3
tim (not reviewing)
thanks for the comments. made changes.
10 years, 9 months ago (2010-03-15 22:26:20 UTC) #4
akalin
LGTM http://codereview.chromium.org/984001/diff/15002/30001 File chrome/browser/sync/notifier/listener/mediator_thread_impl.cc (right): http://codereview.chromium.org/984001/diff/15002/30001#newcode94 chrome/browser/sync/notifier/listener/mediator_thread_impl.cc:94: CHECK(login_.get() == NULL); nit: preferred style is CHECK(!foo.get()) ...
10 years, 9 months ago (2010-03-15 22:42:56 UTC) #5
tim (not reviewing)
10 years, 9 months ago (2010-03-16 15:11:55 UTC) #6
http://codereview.chromium.org/984001/diff/15002/30001
File chrome/browser/sync/notifier/listener/mediator_thread_impl.cc (right):

http://codereview.chromium.org/984001/diff/15002/30001#newcode94
chrome/browser/sync/notifier/listener/mediator_thread_impl.cc:94:
CHECK(login_.get() == NULL);
Ok, done.  Thanks, will submit shortly!

Powered by Google App Engine
This is Rietveld 408576698