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

Unified Diff: remoting/protocol/negotiating_client_authenticator.cc

Issue 1794433002: Use ClientAuthenticationConfig in PairingClientAuthenticator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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
Index: remoting/protocol/negotiating_client_authenticator.cc
diff --git a/remoting/protocol/negotiating_client_authenticator.cc b/remoting/protocol/negotiating_client_authenticator.cc
index f26b6efc4d7be4c15553801199fd3978d13f9014..d243f86d3e4f404a176a6b62190bf12112d2c489 100644
--- a/remoting/protocol/negotiating_client_authenticator.cc
+++ b/remoting/protocol/negotiating_client_authenticator.cc
@@ -22,9 +22,6 @@
namespace remoting {
namespace protocol {
-ClientAuthenticationConfig::ClientAuthenticationConfig() {}
-ClientAuthenticationConfig::~ClientAuthenticationConfig() {}
-
NegotiatingClientAuthenticator::NegotiatingClientAuthenticator(
const std::string& local_id,
const std::string& remote_id,
@@ -151,9 +148,7 @@ void NegotiatingClientAuthenticator::CreatePreferredAuthenticator() {
// If the client specified a pairing id and shared secret, then create a
// PairingAuthenticator.
current_authenticator_.reset(new PairingClientAuthenticator(
- config_.pairing_client_id, config_.pairing_secret,
- base::Bind(&V2Authenticator::CreateForClient),
- config_.fetch_secret_callback, config_.host_id));
+ config_, base::Bind(&V2Authenticator::CreateForClient)));
current_method_ = Method::PAIRED_SPAKE2_P224;
}
}
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.h ('k') | remoting/protocol/pairing_client_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698