Index: remoting/protocol/connection_to_client.cc |
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc |
index 11101cd1a72144b5f9e95688945f6db85d83cfb2..183ddfafb464d39d62c119ce171b8eb4b31fb358 100644 |
--- a/remoting/protocol/connection_to_client.cc |
+++ b/remoting/protocol/connection_to_client.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -83,7 +83,7 @@ void ConnectionToClient::OnSessionStateChange(protocol::Session::State state) { |
video_writer_->Init(session_); |
dispatcher_.reset(new HostMessageDispatcher()); |
- dispatcher_->Initialize(session_.get(), host_stub_, input_stub_); |
+ dispatcher_->Initialize(this, host_stub_, input_stub_); |
} |
// This method can be called from main thread so perform threading switching. |
@@ -145,5 +145,9 @@ void ConnectionToClient::OnClientAuthenticated() { |
client_stub_->OnAuthenticated(); |
} |
+bool ConnectionToClient::client_authenticated() { |
+ return client_authenticated_; |
+} |
+ |
} // namespace protocol |
} // namespace remoting |