Index: ppapi/proxy/ppb_testing_proxy.cc |
diff --git a/ppapi/proxy/ppb_testing_proxy.cc b/ppapi/proxy/ppb_testing_proxy.cc |
index 9c0a14b62d72a3e295803079ee77a25e5cd9d735..d1f5cec651209bf66a2ce773235554e5c0ff164c 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) { |