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

Unified Diff: chrome/common/net/notifier/listener/talk_mediator_impl.h

Issue 2471006: Refactored MediatorThread to use Chrome threads primarily. (Closed)
Patch Set: Created 10 years, 7 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
Index: chrome/common/net/notifier/listener/talk_mediator_impl.h
diff --git a/chrome/common/net/notifier/listener/talk_mediator_impl.h b/chrome/common/net/notifier/listener/talk_mediator_impl.h
index 4ff4681d3c7ad383fa779f6eaf4091ca8ad94ec5..8625fa413ef649d393f0d1185189b8f1d0aeecfb 100644
--- a/chrome/common/net/notifier/listener/talk_mediator_impl.h
+++ b/chrome/common/net/notifier/listener/talk_mediator_impl.h
@@ -12,7 +12,7 @@
#include <string>
#include <vector>
-#include "base/lock.h"
+#include "base/non_thread_safe.h"
#include "base/scoped_ptr.h"
#include "chrome/common/net/notifier/listener/mediator_thread.h"
#include "chrome/common/net/notifier/listener/talk_mediator.h"
@@ -82,11 +82,7 @@ class TalkMediatorImpl
// mediator thread's SignalStateChange object.
void TalkMediatorInitialization(bool should_connect);
- // Protects state_, xmpp_settings_, and subscribed_services_list_.
- //
- // TODO(akalin): Remove this once we use this class from one thread
- // only.
- Lock mutex_;
+ NonThreadSafe non_thread_safe_;
// Delegate, which we don't own. May be NULL.
TalkMediator::Delegate* delegate_;
« no previous file with comments | « chrome/common/net/notifier/listener/mediator_thread_impl.cc ('k') | chrome/common/net/notifier/listener/talk_mediator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698