diff options
Diffstat (limited to 'remoting/host/simple_host_process.cc')
-rw-r--r-- | remoting/host/simple_host_process.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc index bd8385f..7bdb7fb 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 |