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

Unified Diff: content/public/browser/browser_thread.h

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 | « chrome/browser/sync/glue/http_bridge_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_thread.h
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h
index cf54b4cb71e364f4c51b755f5d4b53a5f071827c..30ac554e65abb0eb4292de33e813a686fe97fda7 100644
--- a/content/public/browser/browser_thread.h
+++ b/content/public/browser/browser_thread.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
+#include "base/message_loop_proxy.h"
#include "base/task.h"
#include "base/tracked_objects.h"
#include "content/common/content_export.h"
@@ -20,7 +21,6 @@
class MessageLoop;
namespace base {
-class MessageLoopProxy;
class Thread;
}
@@ -153,8 +153,8 @@ class CONTENT_EXPORT BrowserThread {
static bool ReleaseSoon(ID identifier,
const tracked_objects::Location& from_here,
const T* object) {
- return PostNonNestableTask(
- identifier, from_here, new ReleaseTask<T>(object));
+ return GetMessageLoopProxyForThread(identifier)->ReleaseSoon(
+ from_here, object);
}
// Callable on any thread. Returns whether the given ID corresponds to a well
« no previous file with comments | « chrome/browser/sync/glue/http_bridge_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698