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 b3c8612a8f81dcf08820feb6cd768ef81668d12a..e56074bf89e26a2ced6e8ab816daf0a701b985e6 100644 |
--- a/remoting/host/plugin/host_script_object.cc |
+++ b/remoting/host/plugin/host_script_object.cc |
@@ -655,7 +655,7 @@ HostNPScriptObject::HostNPScriptObject( |
am_currently_logging_(false), |
state_(kDisconnected), |
daemon_controller_(DaemonController::Create()), |
- ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), |
+ weak_factory_(this), |
weak_ptr_(weak_factory_.GetWeakPtr()) { |
DCHECK(plugin_task_runner_->BelongsToCurrentThread()); |