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

Unified Diff: remoting/host/simple_host_process.cc

Issue 7008003: Wire in OAuth2 support into non-sandboxed connections in libjingle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index bd8385f4db26748ccfdcc2549b0d4fe74116dd71..7bdb7fb346e717ba6772344716d323d8d839a60d 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -32,6 +32,7 @@
#include "base/threading/thread.h"
#include "crypto/nss_util.h"
#include "media/base/media.h"
+#include "remoting/base/constants.h"
#include "remoting/base/tracer.h"
#include "remoting/host/capturer_fake.h"
#include "remoting/host/chromoting_host.h"
@@ -52,6 +53,8 @@
using remoting::ChromotingHost;
using remoting::DesktopEnvironment;
+using remoting::kChromotingTokenDefaultServiceName;
+using remoting::kXmppAuthServiceConfigPath;
using remoting::protocol::CandidateSessionConfig;
using remoting::protocol::ChannelConfig;
using std::string;
@@ -122,6 +125,13 @@ class SimpleHost {
return 1;
}
+ // For the simple host, we assume we always use the ClientLogin token for
+ // chromiumsync because we do not have an HTTP stack with which we can
+ // easily request an OAuth2 access token even if we had a RefreshToken for
+ // the account.
+ config->SetString(kXmppAuthServiceConfigPath,
+ kChromotingTokenDefaultServiceName);
+
// Initialize AccessVerifier.
// TODO(jamiewalch): For the Me2Mom case, the access verifier is passed to
// RegisterSupportHostRequest::Init, so transferring ownership of it to the

Powered by Google App Engine
This is Rietveld 408576698