Chromium Code Reviews| Index: remoting/jingle_glue/fake_signal_strategy.cc |
| diff --git a/remoting/jingle_glue/fake_signal_strategy.cc b/remoting/jingle_glue/fake_signal_strategy.cc |
| index 1ddabda6619614a43dcabef9fd0db8fe4deb3312..c489098c503ccd3b37a70839995fc5feaa4e57d9 100644 |
| --- a/remoting/jingle_glue/fake_signal_strategy.cc |
| +++ b/remoting/jingle_glue/fake_signal_strategy.cc |
| @@ -5,10 +5,12 @@ |
| #include "remoting/jingle_glue/fake_signal_strategy.h" |
| #include "base/bind.h" |
| +#include "base/location.h" |
|
alexeypa (please no reviews)
2012/07/27 15:43:50
nit: Does base/location.h is really needed here?
Sergey Ulanov
2012/07/27 18:49:48
Yes, it defines FROM_HERE
|
| #include "base/logging.h" |
| -#include "base/message_loop.h" |
| +#include "base/single_thread_task_runner.h" |
| #include "base/stl_util.h" |
| #include "base/string_number_conversions.h" |
| +#include "base/thread_task_runner_handle.h" |
| #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| #include "third_party/libjingle/source/talk/xmpp/constants.h" |
| @@ -93,7 +95,7 @@ void FakeSignalStrategy::OnIncomingMessage( |
| scoped_ptr<buzz::XmlElement> stanza) { |
| pending_messages_.push(stanza.get()); |
| received_messages_.push_back(stanza.release()); |
| - MessageLoop::current()->PostTask( |
| + base::ThreadTaskRunnerHandle::Get()->PostTask( |
| FROM_HERE, base::Bind(&FakeSignalStrategy::DeliverIncomingMessages, |
| weak_factory_.GetWeakPtr())); |
| } |