summaryrefslogtreecommitdiffstats
path: root/remoting/host/plugin/host_script_object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/plugin/host_script_object.cc')
-rw-r--r--remoting/host/plugin/host_script_object.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
index cfb3b9c..460655a 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -458,6 +458,9 @@ void HostNPScriptObject::OnReceivedSupportID(
access_code_ = support_id + access_verifier->host_secret();
access_code_lifetime_ = lifetime;
+ // Tell the ChromotingHost the access code, to use as shared-secret.
+ host_->set_access_code(access_code_);
+
// Let the caller know that life is good.
OnStateChanged(kReceivedAccessCode);
}