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

Unified Diff: webkit/plugins/ppapi/quota_file_io_unittest.cc

Issue 7583053: Add MessageLoopProxy::current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No need for MessageLoopProxy destruction observer. Created 9 years, 4 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
« no previous file with comments | « webkit/plugins/ppapi/quota_file_io.cc ('k') | webkit/quota/mock_quota_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/quota_file_io_unittest.cc
diff --git a/webkit/plugins/ppapi/quota_file_io_unittest.cc b/webkit/plugins/ppapi/quota_file_io_unittest.cc
index 89b1a808998424a378b3ca2182a2e15686b9fed1..1e0b3609ce2285a45acb0d336c37ca97b87e1ccd 100644
--- a/webkit/plugins/ppapi/quota_file_io_unittest.cc
+++ b/webkit/plugins/ppapi/quota_file_io_unittest.cc
@@ -29,7 +29,7 @@ class QuotaMockPluginDelegate : public MockPluginDelegate {
QuotaMockPluginDelegate()
: available_space_(0),
will_update_count_(0),
- file_thread_(MessageLoopProxy::CreateForCurrentThread()),
+ file_thread_(MessageLoopProxy::current()),
runnable_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
}
virtual ~QuotaMockPluginDelegate() {}
@@ -43,7 +43,7 @@ class QuotaMockPluginDelegate : public MockPluginDelegate {
quota::StorageType type,
Callback* callback) OVERRIDE {
DCHECK(callback);
- MessageLoopProxy::CreateForCurrentThread()->PostTask(
+ MessageLoopProxy::current()->PostTask(
FROM_HERE, runnable_factory_.NewRunnableMethod(
&QuotaMockPluginDelegate::RunAvailableSpaceCallback, callback));
}
« no previous file with comments | « webkit/plugins/ppapi/quota_file_io.cc ('k') | webkit/quota/mock_quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698