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

Unified Diff: sync/test/engine/test_directory_setter_upper.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/syncable/syncable_unittest.cc ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/test_directory_setter_upper.cc
diff --git a/sync/test/engine/test_directory_setter_upper.cc b/sync/test/engine/test_directory_setter_upper.cc
index 85e8aa39c8819dfa8cd9ec7901c3cd35fae965bc..e71964e37f4726564244e5ee5470c49fefce263c 100644
--- a/sync/test/engine/test_directory_setter_upper.cc
+++ b/sync/test/engine/test_directory_setter_upper.cc
@@ -28,9 +28,9 @@ void TestDirectorySetterUpper::SetUp() {
MakeWeakHandle(test_transaction_observer_->AsWeakPtr());
directory_.reset(new syncable::Directory(
- new syncable::InMemoryDirectoryBackingStore(name_), &handler_,
- base::Closure(), &encryption_handler_,
- encryption_handler_.cryptographer()));
+ new syncable::InMemoryDirectoryBackingStore(name_),
+ MakeWeakHandle(handler_.GetWeakPtr()), base::Closure(),
+ &encryption_handler_, encryption_handler_.cryptographer()));
ASSERT_EQ(syncable::OPENED, directory_->Open(
name_, &delegate_, transaction_observer));
}
@@ -43,8 +43,8 @@ void TestDirectorySetterUpper::SetUpWith(
MakeWeakHandle(test_transaction_observer_->AsWeakPtr());
directory_.reset(new syncable::Directory(
- directory_store, &handler_, base::Closure(), &encryption_handler_,
- encryption_handler_.cryptographer()));
+ directory_store, MakeWeakHandle(handler_.GetWeakPtr()), base::Closure(),
+ &encryption_handler_, encryption_handler_.cryptographer()));
ASSERT_EQ(syncable::OPENED, directory_->Open(
name_, &delegate_, transaction_observer));
}
« no previous file with comments | « sync/syncable/syncable_unittest.cc ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698