Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4970)

Unified Diff: chrome/renderer/pepper/ppb_pdf_impl.cc

Issue 23498038: Run a nested message loop so that the browser doesn't hang. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/ppb_pdf_impl.cc
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc
index 95bca9f282f4c0771a1a511dc3c9356449df33fd..d2458708ec0821a9271a9be297aa5bc47dfc7f62 100644
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc
@@ -409,11 +409,12 @@ PP_Var ModalPromptForPassword(PP_Instance instance_id,
scoped_refptr<ppapi::StringVar> message_string(
ppapi::StringVar::FromPPVar(message));
- instance->GetRenderView()->Send(
- new ChromeViewHostMsg_PDFModalPromptForPassword(
- instance->GetRenderView()->GetRoutingID(),
- message_string->value(),
- &actual_value));
+ IPC::SyncMessage* msg = new ChromeViewHostMsg_PDFModalPromptForPassword(
+ instance->GetRenderView()->GetRoutingID(),
+ message_string->value(),
+ &actual_value);
+ msg->EnableMessagePumping();
+ instance->GetRenderView()->Send(msg);
return ppapi::StringVar::StringToPPVar(actual_value);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698