| Index: remoting/client/plugin/chromoting_scriptable_object.cc
|
| diff --git a/remoting/client/plugin/chromoting_scriptable_object.cc b/remoting/client/plugin/chromoting_scriptable_object.cc
|
| index 7e2de5e4625ed28bc43f045f79fd28821fb49ae5..057272ea8d1465aad5519dcccf1b44f7a7f84633 100644
|
| --- a/remoting/client/plugin/chromoting_scriptable_object.cc
|
| +++ b/remoting/client/plugin/chromoting_scriptable_object.cc
|
| @@ -7,7 +7,7 @@
|
| #include "base/bind.h"
|
| #include "base/callback.h"
|
| #include "base/logging.h"
|
| -#include "base/message_loop_proxy.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/string_split.h"
|
| #include "ppapi/cpp/private/var_private.h"
|
| #include "remoting/base/auth_token_util.h"
|
| @@ -44,9 +44,10 @@ const char kRoundTripLatencyAttribute[] = "roundTripLatency";
|
| } // namespace
|
|
|
| ChromotingScriptableObject::ChromotingScriptableObject(
|
| - ChromotingInstance* instance, base::MessageLoopProxy* plugin_message_loop)
|
| + ChromotingInstance* instance,
|
| + base::SingleThreadTaskRunner* plugin_task_runner)
|
| : instance_(instance),
|
| - plugin_message_loop_(plugin_message_loop) {
|
| + plugin_task_runner_(plugin_task_runner) {
|
| }
|
|
|
| ChromotingScriptableObject::~ChromotingScriptableObject() {
|
| @@ -254,7 +255,7 @@ void ChromotingScriptableObject::SetConnectionStatus(
|
| }
|
|
|
| if (signal) {
|
| - plugin_message_loop_->PostTask(
|
| + plugin_task_runner_->PostTask(
|
| FROM_HERE, base::Bind(
|
| &ChromotingScriptableObject::DoSignalConnectionInfoChange,
|
| AsWeakPtr(), state, error));
|
| @@ -285,7 +286,7 @@ void ChromotingScriptableObject::SetDesktopSize(int width, int height) {
|
| properties_[height_index].attribute.AsInt() != height) {
|
| properties_[width_index].attribute = Var(width);
|
| properties_[height_index].attribute = Var(height);
|
| - plugin_message_loop_->PostTask(
|
| + plugin_task_runner_->PostTask(
|
| FROM_HERE, base::Bind(
|
| &ChromotingScriptableObject::DoSignalDesktopSizeChange,
|
| AsWeakPtr()));
|
| @@ -295,7 +296,7 @@ void ChromotingScriptableObject::SetDesktopSize(int width, int height) {
|
| }
|
|
|
| void ChromotingScriptableObject::SendIq(const std::string& message_xml) {
|
| - plugin_message_loop_->PostTask(
|
| + plugin_task_runner_->PostTask(
|
| FROM_HERE, base::Bind(
|
| &ChromotingScriptableObject::DoSendIq, AsWeakPtr(), message_xml));
|
| }
|
|
|