diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 10:00:20 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 10:00:20 +0000 |
commit | c540f5d9fa6840a17ffccc6a5898a84f45b670a3 (patch) | |
tree | f3b292f1691e1b8d6786623cc0c025d7a5e463c6 /chrome/browser/sync/notifier/server_notifier_thread.h | |
parent | fa4332dc5decca49028a64d123c49cc2f3417f2d (diff) | |
download | chromium_src-c540f5d9fa6840a17ffccc6a5898a84f45b670a3.zip chromium_src-c540f5d9fa6840a17ffccc6a5898a84f45b670a3.tar.gz chromium_src-c540f5d9fa6840a17ffccc6a5898a84f45b670a3.tar.bz2 |
[Sync] Avoid reinitializing server notifier client on XMPP reconnect
Will be unit-tested in a separate CL.
BUG=63857
TEST=Manual :(
Review URL: http://codereview.chromium.org/5293001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/notifier/server_notifier_thread.h')
-rw-r--r-- | chrome/browser/sync/notifier/server_notifier_thread.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/sync/notifier/server_notifier_thread.h b/chrome/browser/sync/notifier/server_notifier_thread.h index 76ec4f1..55b60fe 100644 --- a/chrome/browser/sync/notifier/server_notifier_thread.h +++ b/chrome/browser/sync/notifier/server_notifier_thread.h @@ -65,18 +65,14 @@ class ServerNotifierThread // StateWriter implementation. virtual void WriteState(const std::string& state); - protected: - virtual void OnDisconnect(); - private: // Posted to the worker thread by ListenForUpdates(). - void StartInvalidationListener(); + void DoListenForUpdates(); // Posted to the worker thread by SubscribeForUpdates(). void RegisterTypesAndSignalSubscribed(); - // Called by StartInvalidationListener() and posted to the worker - // thread by Stop(). + // Posted to the worker thread by Logout(). void StopInvalidationListener(); std::string state_; |