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

Unified Diff: sync/tools/sync_client.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/test/engine/test_directory_setter_upper.cc ('k') | sync/util/mock_unrecoverable_error_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_client.cc
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index 6c3793bdcc2bad52dcc9653698e64766a2bb7dab..2ec1f199f7cd1d303b4e3141665e3304893b4a8d 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -435,7 +435,7 @@ int SyncClientMain(int argc, char* argv[]) {
args.internal_components_factory.reset(
new InternalComponentsFactoryImpl(factory_switches));
args.encryptor = &null_encryptor;
- args.unrecoverable_error_handler.reset(new LoggingUnrecoverableErrorHandler);
+ args.unrecoverable_error_handler = WeakHandle<UnrecoverableErrorHandler>();
args.report_unrecoverable_error_function =
base::Bind(LogUnrecoverableErrorContext);
args.cancelation_signal = &scm_cancelation_signal;
« no previous file with comments | « sync/test/engine/test_directory_setter_upper.cc ('k') | sync/util/mock_unrecoverable_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698