From 7fdad3a542e60dd9426e103b813421f3d1b37b40 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Tue, 27 Jul 2010 21:14:33 +0000 Subject: Rewrote handing of auto-reconnection and network changes for sync notifier. BUG=47883 TEST=manual (turning network connection off and on) Review URL: http://codereview.chromium.org/2809056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53839 0039d316-1c4b-4281-b951-d872f2087c98 --- jingle/notifier/communicator/single_login_attempt.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'jingle/notifier/communicator/single_login_attempt.cc') diff --git a/jingle/notifier/communicator/single_login_attempt.cc b/jingle/notifier/communicator/single_login_attempt.cc index 8f1e26f..69dd21e 100644 --- a/jingle/notifier/communicator/single_login_attempt.cc +++ b/jingle/notifier/communicator/single_login_attempt.cc @@ -99,10 +99,6 @@ SingleLoginAttempt::~SingleLoginAttempt() { DCHECK(!client_); } -bool SingleLoginAttempt::auto_reconnect() const { - return login_settings_->connection_options().auto_reconnect(); -} - const talk_base::ProxyInfo& SingleLoginAttempt::proxy() const { DCHECK(connection_generator_.get()); return connection_generator_->proxy(); @@ -157,7 +153,7 @@ void SingleLoginAttempt::OnAttemptedAllConnections( LOG(INFO) << "Connection failed with error " << code_; // We were connected and we had a problem. - if (successful_connection_ && auto_reconnect()) { + if (successful_connection_) { SignalNeedAutoReconnect(); // Expect to be deleted at this point. return; -- cgit v1.1