diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 23:25:40 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 23:25:40 +0000 |
commit | 80ec3fffc1220f0f9144b1b5762195e1b623abaa (patch) | |
tree | 346ed055aa1f2d83146337c3beb122fbc1935057 /third_party/libjingle/files/talk/xmpp/xmppclient.cc | |
parent | b36c91683d0bfabe9b1f19b619dc71d265452c47 (diff) | |
download | chromium_src-80ec3fffc1220f0f9144b1b5762195e1b623abaa.zip chromium_src-80ec3fffc1220f0f9144b1b5762195e1b623abaa.tar.gz chromium_src-80ec3fffc1220f0f9144b1b5762195e1b623abaa.tar.bz2 |
Fix for a problem introduced by 41865 which causes sync notifications
to break for non-gmail.com accounts.
BUG=40054
TEST=manual testing
Review URL: http://codereview.chromium.org/1558013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libjingle/files/talk/xmpp/xmppclient.cc')
-rw-r--r-- | third_party/libjingle/files/talk/xmpp/xmppclient.cc | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/third_party/libjingle/files/talk/xmpp/xmppclient.cc b/third_party/libjingle/files/talk/xmpp/xmppclient.cc index b0f3138..985f51e 100644 --- a/third_party/libjingle/files/talk/xmpp/xmppclient.cc +++ b/third_party/libjingle/files/talk/xmpp/xmppclient.cc @@ -116,20 +116,13 @@ XmppClient::Connect(const XmppClientSettings & settings, } d_->engine_->SetUseTls(settings.use_tls()); - // - // The talk.google.com server expects you to use "gmail.com" in the - // stream, and expects the domain certificate to be "gmail.com" as well. - // For all other servers, we leave the strings empty, which causes - // the jid's domain to be used. "foo@example.com" -> stream to="example.com" - // tls certificate for "example.com" - // - // This is only true when using Gaia auth, so let's say if there's - // no sasl_handler, we should use the actual server name - // TODO(akalin): Do this in a less hackish way. - if ((settings.server().IPAsString() == buzz::STR_TALK_GOOGLE_COM || - settings.server().IPAsString() == buzz::STR_TALKX_L_GOOGLE_COM) && - sasl_handler != NULL) { - d_->engine_->SetTlsServer(buzz::STR_GMAIL_COM, buzz::STR_GMAIL_COM); + if (sasl_handler) { + std::string tls_server_hostname, tls_server_domain; + if (sasl_handler->GetTlsServerInfo(settings.server(), + &tls_server_hostname, + &tls_server_domain)) { + d_->engine_->SetTlsServer(tls_server_hostname, tls_server_domain); + } } // Set language |