From c540f5d9fa6840a17ffccc6a5898a84f45b670a3 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Tue, 23 Nov 2010 10:00:20 +0000 Subject: [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 --- chrome/browser/sync/notifier/server_notifier_thread.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chrome/browser/sync/notifier/server_notifier_thread.h') 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_; -- cgit v1.1