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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 1275743002: [Sync] Remove backend unrecoverable error handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak Created 5 years, 4 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 79d762806a3d7a643c75f65ccb215d75c790fedd..453252b16afb7d194a6ac39acc7ddf2c5db8dbb9 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -525,17 +525,12 @@ void ProfileSyncService::InitializeBackend(bool delete_stale_data) {
if (backend_mode_ == SYNC && delete_stale_data)
ClearStaleErrors();
- scoped_ptr<syncer::UnrecoverableErrorHandler>
- backend_unrecoverable_error_handler(
- new browser_sync::BackendUnrecoverableErrorHandler(
- MakeWeakHandle(weak_factory_.GetWeakPtr())));
-
backend_->Initialize(this, sync_thread_.Pass(), GetJsEventHandler(),
sync_service_url_, credentials, delete_stale_data,
scoped_ptr<syncer::SyncManagerFactory>(
new syncer::SyncManagerFactory(GetManagerType()))
.Pass(),
- backend_unrecoverable_error_handler.Pass(),
+ MakeWeakHandle(weak_factory_.GetWeakPtr()),
base::Bind(browser_sync::ChromeReportUnrecoverableError),
network_resources_.get(), saved_nigori_state_.Pass());
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698