| Index: content/shell/shell_content_browser_client.cc
|
| diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
|
| index 401919947714ad1345ab374b2340c95d35995364..e806f3667591b3ebca3fcb2edd850d06e13dd653 100644
|
| --- a/content/shell/shell_content_browser_client.cc
|
| +++ b/content/shell/shell_content_browser_client.cc
|
| @@ -121,6 +121,19 @@ WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
|
| return NULL;
|
| }
|
|
|
| +bool ShellContentBrowserClient::CanCreateWindow(
|
| + const GURL& opener_url,
|
| + const GURL& origin,
|
| + WindowContainerType container_type,
|
| + ResourceContext* context,
|
| + int render_process_id,
|
| + bool* no_javascript_access) {
|
| + *no_javascript_access = false;
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
|
| + return true;
|
| + return WebKitTestController::Get()->can_open_windows();
|
| +}
|
| +
|
| #if defined(OS_ANDROID)
|
| void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
|
| const CommandLine& command_line,
|
|
|