| Index: remoting/host/plugin/host_script_object.cc
|
| diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
|
| index c4572e20cdbafe60119d16db26133ec7f372e1e6..ddcb1cb651737be73572c893bc827a19f28e1e34 100644
|
| --- a/remoting/host/plugin/host_script_object.cc
|
| +++ b/remoting/host/plugin/host_script_object.cc
|
| @@ -642,10 +642,11 @@ HostNPScriptObject::HostNPScriptObject(
|
| plugin_task_runner_(plugin_task_runner),
|
| am_currently_logging_(false),
|
| state_(kDisconnected),
|
| - weak_factory_(this),
|
| - weak_ptr_(weak_factory_.GetWeakPtr()) {
|
| + weak_factory_(this) {
|
| DCHECK(plugin_task_runner_->BelongsToCurrentThread());
|
|
|
| + weak_ptr_ = weak_factory_.GetWeakPtr();
|
| +
|
| // Set the thread task runner for the plugin thread so that timers and other
|
| // code using |base::ThreadTaskRunnerHandle| could be used on the plugin
|
| // thread.
|
|
|