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

Unified Diff: remoting/test/protocol_perftest.cc

Issue 1788943002: Revert of Move NegotiatingClientAuthentication creation to ChromotingClient. (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
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/test/test_chromoting_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/protocol_perftest.cc
diff --git a/remoting/test/protocol_perftest.cc b/remoting/test/protocol_perftest.cc
index d8a96432e2e7e1ff108ee5ee823bb99682f98c8a..cfbe3041e75d1128422edd38553a799baa6a59eb 100644
--- a/remoting/test/protocol_perftest.cc
+++ b/remoting/test/protocol_perftest.cc
@@ -388,15 +388,17 @@
host_signaling_.get(), std::move(port_allocator_factory), nullptr,
network_settings, protocol::TransportRole::CLIENT));
- protocol::ClientAuthenticationConfig client_auth_config;
- client_auth_config.host_id = kHostId;
- client_auth_config.fetch_secret_callback =
- base::Bind(&ProtocolPerfTest::FetchPin, base::Unretained(this));
-
+ scoped_ptr<protocol::Authenticator> client_authenticator(
+ new protocol::NegotiatingClientAuthenticator(
+ std::string(), // client_pairing_id
+ std::string(), // client_pairing_secret
+ kHostId,
+ base::Bind(&ProtocolPerfTest::FetchPin, base::Unretained(this)),
+ protocol::FetchThirdPartyTokenCallback()));
client_.reset(
new ChromotingClient(client_context_.get(), this, this, nullptr));
client_->set_protocol_config(protocol_config_->Clone());
- client_->Start(client_signaling_.get(), client_auth_config,
+ client_->Start(client_signaling_.get(), std::move(client_authenticator),
transport_context, kHostJid, std::string());
}
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/test/test_chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698