summaryrefslogtreecommitdiffstats
path: root/base/message_loop_proxy.cc
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-30 04:32:58 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-30 04:32:58 +0000
commitb1d183282176bddba847c024ef111b4795046668 (patch)
tree939afc09384b365411d7d049d4ff0a73d6c98d41 /base/message_loop_proxy.cc
parentb4bd6c9c76e0d5f95028dd563e0e948fe6d9095b (diff)
downloadchromium_src-b1d183282176bddba847c024ef111b4795046668.zip
chromium_src-b1d183282176bddba847c024ef111b4795046668.tar.gz
chromium_src-b1d183282176bddba847c024ef111b4795046668.tar.bz2
Replace MessageLoop::DeleteSoon implementation with one that uses base::Bind.
BUG=none TEST=none TBR=willchan,brettw,tony Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115997 Review URL: http://codereview.chromium.org/9004051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop_proxy.cc')
-rw-r--r--base/message_loop_proxy.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/message_loop_proxy.cc b/base/message_loop_proxy.cc
index f9b4ad8..63837d7 100644
--- a/base/message_loop_proxy.cc
+++ b/base/message_loop_proxy.cc
@@ -49,4 +49,11 @@ void MessageLoopProxy::OnDestruct() const {
delete this;
}
+bool MessageLoopProxy::DeleteSoonInternal(
+ const tracked_objects::Location& from_here,
+ void(*deleter)(const void*),
+ const void* object) {
+ return PostNonNestableTask(from_here, base::Bind(deleter, object));
+}
+
} // namespace base