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

Unified Diff: base/message_loop.cc

Issue 9004051: Replace MessageLoop::DeleteSoon implementation with one that uses base::Bind. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final 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 f272a8329a1f8843df6b81fc17b19766fe8e02a1..cf6d89b0c1972e32daca2dc5493fd95c3c2fd3b7 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -741,6 +741,12 @@ bool MessageLoop::DoIdleWork() {
return false;
}
+void MessageLoop::DeleteSoonInternal(const tracked_objects::Location& from_here,
+ void(*deleter)(const void*),
+ const void* object) {
+ PostNonNestableTask(from_here, base::Bind(deleter, 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