| Index: content/shell/shell_javascript_dialog_creator.cc
|
| diff --git a/content/shell/shell_javascript_dialog_creator.cc b/content/shell/shell_javascript_dialog_creator.cc
|
| index e7f0b779093bbdf7d717a4f3d33b77b0a6bb055c..60a923c500b0da656948591c9096ba861f3d38cf 100644
|
| --- a/content/shell/shell_javascript_dialog_creator.cc
|
| +++ b/content/shell/shell_javascript_dialog_creator.cc
|
| @@ -87,9 +87,7 @@ void ShellJavaScriptDialogCreator::RunBeforeUnloadDialog(
|
| const DialogClosedCallback& callback) {
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
|
| printf("CONFIRM NAVIGATION: %s\n", UTF16ToUTF8(message_text).c_str());
|
| - WebKitTestRunnerHost* controller =
|
| - WebKitTestRunnerHost::FromRenderViewHost(
|
| - web_contents->GetRenderViewHost());
|
| + WebKitTestController* controller = WebKitTestController::Get();
|
| callback.Run(
|
| !controller->should_stay_on_page_after_handling_before_unload(),
|
| string16());
|
|
|