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

Unified Diff: components/invalidation/mock_ack_handler.cc

Issue 446223002: Remove WeakHandle from components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 6 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 | « components/invalidation/mock_ack_handler.h ('k') | components/invalidation/non_blocking_invalidator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/mock_ack_handler.cc
diff --git a/components/invalidation/mock_ack_handler.cc b/components/invalidation/mock_ack_handler.cc
index aba96cb7742facd6655f615adfe5fe813a9b53c3..bdda9552c963890a64fc78d8f937238d13846e35 100644
--- a/components/invalidation/mock_ack_handler.cc
+++ b/components/invalidation/mock_ack_handler.cc
@@ -4,6 +4,7 @@
#include "components/invalidation/mock_ack_handler.h"
+#include "base/message_loop/message_loop_proxy.h"
#include "components/invalidation/ack_handle.h"
#include "components/invalidation/invalidation.h"
@@ -34,7 +35,7 @@ MockAckHandler::~MockAckHandler() {}
void MockAckHandler::RegisterInvalidation(Invalidation* invalidation) {
unacked_invalidations_.push_back(*invalidation);
- invalidation->set_ack_handler(WeakHandleThis());
+ invalidation->SetAckHandler(AsWeakPtr(), base::MessageLoopProxy::current());
}
void MockAckHandler::RegisterUnsentInvalidation(Invalidation* invalidation) {
@@ -116,8 +117,4 @@ void MockAckHandler::Drop(
unrecovered_drop_events_.insert(std::make_pair(id, handle));
}
-WeakHandle<AckHandler> MockAckHandler::WeakHandleThis() {
- return WeakHandle<AckHandler>(AsWeakPtr());
-}
-
} // namespace syncer
« no previous file with comments | « components/invalidation/mock_ack_handler.h ('k') | components/invalidation/non_blocking_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698