summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/communicator/single_login_attempt.cc
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 21:14:33 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 21:14:33 +0000
commit7fdad3a542e60dd9426e103b813421f3d1b37b40 (patch)
treeae69f246354040d3502f7642ff7e4f90093b5e2c /jingle/notifier/communicator/single_login_attempt.cc
parentc347f49fc32d3a35873040992ef0c7374de41332 (diff)
downloadchromium_src-7fdad3a542e60dd9426e103b813421f3d1b37b40.zip
chromium_src-7fdad3a542e60dd9426e103b813421f3d1b37b40.tar.gz
chromium_src-7fdad3a542e60dd9426e103b813421f3d1b37b40.tar.bz2
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
Diffstat (limited to 'jingle/notifier/communicator/single_login_attempt.cc')
-rw-r--r--jingle/notifier/communicator/single_login_attempt.cc6
1 files changed, 1 insertions, 5 deletions
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;