Index: webkit/plugins/ppapi/plugin_module.cc |
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc |
index 93d816120b85f1e7f12ada8a48706392809e6613..5a7a4e9bf61c9f59cc7076c65fa751f4017a0d4b 100644 |
--- a/webkit/plugins/ppapi/plugin_module.cc |
+++ b/webkit/plugins/ppapi/plugin_module.cc |
@@ -211,10 +211,8 @@ PP_Bool ReadImageData(PP_Resource device_context_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) { |