Index: webkit/plugins/ppapi/ppb_flash_impl.cc |
diff --git a/webkit/plugins/ppapi/ppb_flash_impl.cc b/webkit/plugins/ppapi/ppb_flash_impl.cc |
index c1133ba6d3be5aac012ecb4127b88ddd988517fc..2dc7842b5280b7fab56715ee66f2351c8c7a6611 100644 |
--- a/webkit/plugins/ppapi/ppb_flash_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_flash_impl.cc |
@@ -199,10 +199,8 @@ int32_t Navigate11(PP_Resource request_id, |
} |
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) { |