| Index: content/shell/shell_javascript_dialog_creator.cc
|
| ===================================================================
|
| --- content/shell/shell_javascript_dialog_creator.cc (revision 147965)
|
| +++ content/shell/shell_javascript_dialog_creator.cc (working copy)
|
| @@ -44,6 +44,13 @@
|
| return;
|
| }
|
|
|
| + if (!dialog_request_callback_.is_null()) {
|
| + dialog_request_callback_.Run();
|
| + callback.Run(true, string16());
|
| + dialog_request_callback_.Reset();
|
| + return;
|
| + }
|
| +
|
| #if defined(OS_MACOSX) || defined(OS_WIN)
|
| *did_suppress_message = false;
|
|
|
| @@ -85,6 +92,13 @@
|
| return;
|
| }
|
|
|
| + if (!dialog_request_callback_.is_null()) {
|
| + dialog_request_callback_.Run();
|
| + callback.Run(true, string16());
|
| + dialog_request_callback_.Reset();
|
| + return;
|
| + }
|
| +
|
| #if defined(OS_MACOSX) || defined(OS_WIN)
|
| if (dialog_.get()) {
|
| // Seriously!?
|
|
|