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

Unified Diff: base/message_loop.cc

Issue 9022034: Convert various ReleaseSoon methods to use base::Bind() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 9 years 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 | « base/message_loop.h ('k') | base/message_loop_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 10be720dea632ce4f6233832509ad1742cdbde4f..6da3b6bf9557dd81f69e1020d0fc4885ffe9ff44 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -776,6 +776,13 @@ void MessageLoop::DeleteSoonInternal(const tracked_objects::Location& from_here,
PostNonNestableTask(from_here, base::Bind(deleter, object));
}
+void MessageLoop::ReleaseSoonInternal(
+ const tracked_objects::Location& from_here,
+ void(*releaser)(const void*),
+ const void* object) {
+ PostNonNestableTask(from_here, base::Bind(releaser, object));
+}
+
//------------------------------------------------------------------------------
// MessageLoop::AutoRunState
« no previous file with comments | « base/message_loop.h ('k') | base/message_loop_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698