Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 9251035: Delete lots of sync ServerConnectionManager code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 9ee5d704f8d1bcf4f7e94bca10c8a601254aaaea..6d1e021b0a4e3f86ac92a59ae44b30571dc66224 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -106,10 +106,6 @@ class SyncBackendHost::Core
// SyncBackendHost::Initialize.
void DoInitialize(const DoInitializeOptions& options);
- // Called to check server reachability after initialization is
- // fully completed.
- void DoCheckServerReachable();
-
// Called to perform credential update on behalf of
// SyncBackendHost::UpdateCredentials
void DoUpdateCredentials(const sync_api::SyncCredentials& credentials);
@@ -936,11 +932,6 @@ void SyncBackendHost::Core::DoInitialize(const DoInitializeOptions& options) {
LOG_IF(ERROR, !success) << "Syncapi initialization failed!";
}
-void SyncBackendHost::Core::DoCheckServerReachable() {
- DCHECK_EQ(MessageLoop::current(), sync_loop_);
- sync_manager_->CheckServerReachable();
-}
-
void SyncBackendHost::Core::DoUpdateCredentials(
const SyncCredentials& credentials) {
DCHECK_EQ(MessageLoop::current(), sync_loop_);
@@ -1117,12 +1108,6 @@ void SyncBackendHost::HandleInitializationCompletedOnFrontendLoop(
// the frontend to ensure they're visible in the customize screen.
AddExperimentalTypes();
frontend_->OnBackendInitialized(js_backend, true);
- // Now that we're fully initialized, kick off a server
- // reachability check.
- sync_thread_.message_loop()->PostTask(
- FROM_HERE,
- base::Bind(&SyncBackendHost::Core::DoCheckServerReachable,
- core_.get()));
break;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698