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

Unified Diff: chrome/browser/sync/engine/syncapi.cc

Issue 984001: Force TalkMediator::Logout to wait until the Login task has been destroyed an... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/notifier/listener/mediator_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncapi.cc
===================================================================
--- chrome/browser/sync/engine/syncapi.cc (revision 41596)
+++ chrome/browser/sync/engine/syncapi.cc (working copy)
@@ -1485,11 +1485,13 @@
}
// Shutdown the xmpp buzz connection.
- LOG(INFO) << "P2P: Mediator logout started.";
if (talk_mediator()) {
+ LOG(INFO) << "P2P: Mediator logout started.";
talk_mediator()->Logout();
+ LOG(INFO) << "P2P: Mediator logout completed.";
+ talk_mediator_.reset();
+ LOG(INFO) << "P2P: Mediator destroyed.";
}
- LOG(INFO) << "P2P: Mediator logout completed.";
if (dir_manager()) {
dir_manager()->FinalSaveChangesForAll();
« no previous file with comments | « no previous file | chrome/browser/sync/notifier/listener/mediator_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698