| 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 3d29a7b9a89201f1e700bda0d28a194d39117f24..c9ea5a802bcbf14ac34f244b074d5b7491e9524d 100644
|
| --- a/ppapi/proxy/ppb_message_loop_proxy.cc
|
| +++ b/ppapi/proxy/ppb_message_loop_proxy.cc
|
| @@ -141,9 +141,9 @@ int32_t MessageLoopResource::PostQuit(PP_Bool should_destroy) {
|
| should_destroy_ = true;
|
|
|
| if (IsCurrent() && nested_invocations_ > 0)
|
| - loop_->Quit();
|
| + loop_->QuitWhenIdle();
|
| else
|
| - PostClosure(FROM_HERE, base::MessageLoop::QuitClosure(), 0);
|
| + PostClosure(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), 0);
|
| return PP_OK;
|
| }
|
|
|
|
|