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

Unified Diff: sync/internal_api/sync_manager_impl.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 | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_manager_impl.cc
diff --git a/sync/internal_api/sync_manager_impl.cc b/sync/internal_api/sync_manager_impl.cc
index 15d2d858524bb0a7fdbae735cd924fc262a28c1e..86033ee9f9e93ccd9d6ad9cb7f9c8444112d21d0 100644
--- a/sync/internal_api/sync_manager_impl.cc
+++ b/sync/internal_api/sync_manager_impl.cc
@@ -242,7 +242,6 @@ void SyncManagerImpl::Init(InitArgs* args) {
database_path_ = args->database_location.Append(
syncable::Directory::kSyncDatabaseFilename);
- unrecoverable_error_handler_ = args->unrecoverable_error_handler.Pass();
report_unrecoverable_error_function_ =
args->report_unrecoverable_error_function;
@@ -267,7 +266,7 @@ void SyncManagerImpl::Init(InitArgs* args) {
share_.directory.reset(
new syncable::Directory(
backing_store.release(),
- unrecoverable_error_handler_.get(),
+ args->unrecoverable_error_handler,
report_unrecoverable_error_function_,
sync_encryption_handler_.get(),
sync_encryption_handler_->GetCryptographerUnsafe()));
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698