Index: ppapi/proxy/ppb_testing_proxy.cc |
diff --git a/ppapi/proxy/ppb_testing_proxy.cc b/ppapi/proxy/ppb_testing_proxy.cc |
index 32d521543a15db0573592ff8998dbd91e7f4a519..bc7876b7bbf7b27cd5b258b805f6b64628449904 100644 |
--- a/ppapi/proxy/ppb_testing_proxy.cc |
+++ b/ppapi/proxy/ppb_testing_proxy.cc |
@@ -50,10 +50,8 @@ PP_Bool ReadImageData(PP_Resource graphics_2d, |
} |
void RunMessageLoop(PP_Instance instance) { |
- bool old_state = MessageLoop::current()->NestableTasksAllowed(); |
- MessageLoop::current()->SetNestableTasksAllowed(true); |
+ MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current()); |
MessageLoop::current()->Run(); |
- MessageLoop::current()->SetNestableTasksAllowed(old_state); |
} |
void QuitMessageLoop(PP_Instance instance) { |