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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 8351084: Remove old Authentication code that we don't use or need. (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
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index eec8b39512e1b89ecbf92e9ac8e1c096fe7f456e..454368443bb017efb63537af87863d293c7f647c 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -278,24 +278,6 @@ ChromotingScriptableObject* ChromotingInstance::GetScriptableObject() {
return NULL;
}
-void ChromotingInstance::SubmitLoginInfo(const std::string& username,
- const std::string& password) {
- if (host_connection_->state() != protocol::ConnectionToHost::CONNECTED) {
- LOG(INFO) << "Client not connected or already authenticated.";
- return;
- }
-
- protocol::LocalLoginCredentials* credentials =
- new protocol::LocalLoginCredentials();
- credentials->set_type(protocol::PASSWORD);
- credentials->set_username(username);
- credentials->set_credential(password.data(), password.length());
-
- host_connection_->host_stub()->BeginSessionRequest(
- credentials,
- base::Bind(&DeletePointer<protocol::LocalLoginCredentials>, credentials));
-}
-
void ChromotingInstance::SetScaleToFit(bool scale_to_fit) {
DCHECK(plugin_message_loop_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698