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

Unified Diff: sync/util/mock_unrecoverable_error_handler.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/util/mock_unrecoverable_error_handler.h ('k') | sync/util/test_unrecoverable_error_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/mock_unrecoverable_error_handler.cc
diff --git a/sync/util/mock_unrecoverable_error_handler.cc b/sync/util/mock_unrecoverable_error_handler.cc
index bfed1f1e0cbabed30c4fe86a4cab24eaec8544ae..3f34eca681bbd99da5e0694822145321652e84a4 100644
--- a/sync/util/mock_unrecoverable_error_handler.cc
+++ b/sync/util/mock_unrecoverable_error_handler.cc
@@ -7,7 +7,8 @@
namespace syncer {
MockUnrecoverableErrorHandler::MockUnrecoverableErrorHandler()
- : invocation_count_(0) {
+ : invocation_count_(0),
+ weak_ptr_factory_(this) {
}
MockUnrecoverableErrorHandler::~MockUnrecoverableErrorHandler() {
@@ -23,4 +24,9 @@ int MockUnrecoverableErrorHandler::invocation_count() const {
return invocation_count_;
}
+base::WeakPtr<MockUnrecoverableErrorHandler>
+MockUnrecoverableErrorHandler::GetWeakPtr() {
+ return weak_ptr_factory_.GetWeakPtr();
+}
+
} // namespace syncer
« no previous file with comments | « sync/util/mock_unrecoverable_error_handler.h ('k') | sync/util/test_unrecoverable_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698