| Index: remoting/jingle_glue/jingle_client.cc
|
| diff --git a/remoting/jingle_glue/jingle_client.cc b/remoting/jingle_glue/jingle_client.cc
|
| index ce117806bd394e150a86381a239be3b3c3b9be8f..509e6f8ebc8478673b2b2d2c37f52bf2e8663227 100644
|
| --- a/remoting/jingle_glue/jingle_client.cc
|
| +++ b/remoting/jingle_glue/jingle_client.cc
|
| @@ -114,11 +114,16 @@ void XmppSignalStrategy::OnConnectionStateChanged(
|
| buzz::PreXmppAuth* XmppSignalStrategy::CreatePreXmppAuth(
|
| const buzz::XmppClientSettings& settings) {
|
| buzz::Jid jid(settings.user(), settings.host(), buzz::STR_EMPTY);
|
| + std::string mechanism = notifier::GaiaTokenPreXmppAuth::kDefaultAuthMechanism;
|
| + if (settings.token_service() == "oauth2") {
|
| + mechanism = "X-OAUTH2";
|
| + }
|
| +
|
| return new notifier::GaiaTokenPreXmppAuth(
|
| jid.Str(),
|
| settings.auth_cookie(),
|
| settings.token_service(),
|
| - notifier::GaiaTokenPreXmppAuth::kDefaultAuthMechanism);
|
| + mechanism);
|
| }
|
|
|
|
|
|
|