Index: content/shell/browser/shell_content_browser_client.cc |
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc |
index 64c36a40d856c85913aa62681440c08a79c2a05a..89572d55ce14586695bdb4ca1feadb18455d9f5b 100644 |
--- a/content/shell/browser/shell_content_browser_client.cc |
+++ b/content/shell/browser/shell_content_browser_client.cc |
@@ -10,6 +10,7 @@ |
#include "base/files/file_util.h" |
#include "base/path_service.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "content/public/browser/page_navigator.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/resource_dispatcher_host.h" |
#include "content/public/browser/storage_partition.h" |
@@ -302,6 +303,14 @@ ShellContentBrowserClient::GetDevToolsManagerDelegate() { |
return new ShellDevToolsManagerDelegate(browser_context()); |
} |
+WebContents* ShellContentBrowserClient::OpenURL(BrowserContext* browser_context, |
+ const OpenURLParams& params) { |
+ return Shell::CreateNewWindow(browser_context, |
+ params.url, |
+ nullptr, |
+ gfx::Size())->web_contents(); |
+} |
+ |
#if defined(OS_POSIX) && !defined(OS_MACOSX) |
void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
const base::CommandLine& command_line, |