Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: remoting/protocol/pepper_stream_channel.cc

Issue 8527018: Refactor ChannelAuthenticator so that it can be used with Authenticator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/jingle_stream_connector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/pepper_stream_channel.cc
diff --git a/remoting/protocol/pepper_stream_channel.cc b/remoting/protocol/pepper_stream_channel.cc
index 1508ca3dd2bbea39234391b1893ad2851789fff7..5f8afab9f7cd125acb73acd1d56cc30dfe2ff0bf 100644
--- a/remoting/protocol/pepper_stream_channel.cc
+++ b/remoting/protocol/pepper_stream_channel.cc
@@ -236,11 +236,10 @@ void PepperStreamChannel::OnSSLConnect(int result) {
void PepperStreamChannel::AuthenticateChannel() {
DCHECK(CalledOnValidThread());
- authenticator_.reset(new ClientChannelAuthenticator(ssl_client_socket_));
- authenticator_->Authenticate(
- session_->shared_secret(),
- base::Bind(&PepperStreamChannel::OnAuthenticationDone,
- base::Unretained(this)));
+ authenticator_.reset(
+ new ClientChannelAuthenticator(session_->shared_secret()));
+ authenticator_->Authenticate(ssl_client_socket_, base::Bind(
+ &PepperStreamChannel::OnAuthenticationDone, base::Unretained(this)));
}
void PepperStreamChannel::OnAuthenticationDone(
« no previous file with comments | « remoting/protocol/jingle_stream_connector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698