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

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
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/chromoting_scriptable_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5657839fb997d7ae0f63dc95c8d09a0923e488d7 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -30,7 +30,6 @@
#include "remoting/client/plugin/pepper_view_proxy.h"
#include "remoting/client/plugin/pepper_xmpp_proxy.h"
#include "remoting/client/rectangle_update_decoder.h"
-#include "remoting/proto/auth.pb.h"
#include "remoting/protocol/connection_to_host.h"
#include "remoting/protocol/host_stub.h"
@@ -278,24 +277,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());
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/chromoting_scriptable_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698