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

Unified Diff: ppapi/proxy/ppb_message_loop_proxy.cc

Issue 14273043: ppapi: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 7 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 | « ppapi/proxy/ppb_message_loop_proxy.h ('k') | ppapi/proxy/ppb_network_monitor_private_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_message_loop_proxy.cc
diff --git a/ppapi/proxy/ppb_message_loop_proxy.cc b/ppapi/proxy/ppb_message_loop_proxy.cc
index 0062fb7a84f937fa365eae675da6f431f5789d73..fb01485fa6a20a63c618e83b136a3576be985340 100644
--- a/ppapi/proxy/ppb_message_loop_proxy.cc
+++ b/ppapi/proxy/ppb_message_loop_proxy.cc
@@ -86,7 +86,7 @@ int32_t MessageLoopResource::AttachToCurrentThread() {
AddRef();
slot->Set(this);
- loop_.reset(new MessageLoop(MessageLoop::TYPE_DEFAULT));
+ loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_DEFAULT));
loop_proxy_ = base::MessageLoopProxy::current();
// Post all pending work to the message loop.
@@ -106,8 +106,8 @@ int32_t MessageLoopResource::Run() {
return PP_ERROR_INPROGRESS;
nested_invocations_++;
- CallWhileUnlocked(base::Bind(&MessageLoop::Run,
- base::Unretained(loop_.get())));
+ CallWhileUnlocked(
+ base::Bind(&base::MessageLoop::Run, base::Unretained(loop_.get())));
nested_invocations_--;
if (should_destroy_ && nested_invocations_ == 0) {
@@ -141,7 +141,7 @@ int32_t MessageLoopResource::PostQuit(PP_Bool should_destroy) {
if (IsCurrent() && nested_invocations_ > 0)
loop_->Quit();
else
- PostClosure(FROM_HERE, MessageLoop::QuitClosure(), 0);
+ PostClosure(FROM_HERE, base::MessageLoop::QuitClosure(), 0);
return PP_OK;
}
« no previous file with comments | « ppapi/proxy/ppb_message_loop_proxy.h ('k') | ppapi/proxy/ppb_network_monitor_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698