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

Unified Diff: sync/internal_api/public/util/weak_handle.cc

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback from petewil Created 8 years, 3 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
Index: sync/internal_api/public/util/weak_handle.cc
diff --git a/sync/internal_api/public/util/weak_handle.cc b/sync/internal_api/public/util/weak_handle.cc
index e6411ee4c40ebe232784bfc672125afd435f97da..ddec6db0e58fe8cefdb8ecc34fea84c60b64705c 100644
--- a/sync/internal_api/public/util/weak_handle.cc
+++ b/sync/internal_api/public/util/weak_handle.cc
@@ -31,6 +31,15 @@ void WeakHandleCoreBase::PostToOwnerThread(
}
}
+void WeakHandleCoreBase::PostWithReplyToOwnerThread(
+ const tracked_objects::Location& from_here,
+ const base::Closure& fn,
+ const base::Closure& reply) const {
+ if (!owner_loop_proxy_->PostTaskAndReply(from_here, fn, reply)) {
+ DVLOG(1) << "Could not post task from " << from_here.ToString();
+ }
+}
+
} // namespace internal
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698