| 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 04207d35399bf3de977f29bd816737a481f98772..ac3795481de557b99add984d69dd2fbe4068b860 100644
|
| --- a/content/shell/shell_content_browser_client.cc
|
| +++ b/content/shell/shell_content_browser_client.cc
|
| @@ -44,6 +44,7 @@ namespace content {
|
| namespace {
|
|
|
| ShellContentBrowserClient* g_browser_client;
|
| +bool g_swap_processes_for_redirect = false;
|
|
|
| } // namespace
|
|
|
| @@ -51,6 +52,10 @@ ShellContentBrowserClient* ShellContentBrowserClient::Get() {
|
| return g_browser_client;
|
| }
|
|
|
| +void ShellContentBrowserClient::SetSwapProcessesForRedirect(bool swap) {
|
| + g_swap_processes_for_redirect = swap;
|
| +}
|
| +
|
| ShellContentBrowserClient::ShellContentBrowserClient()
|
| : shell_browser_main_parts_(NULL) {
|
| DCHECK(!g_browser_client);
|
| @@ -185,6 +190,13 @@ net::NetLog* ShellContentBrowserClient::GetNetLog() {
|
| return shell_browser_main_parts_->net_log();
|
| }
|
|
|
| +bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect(
|
| + ResourceContext* resource_context,
|
| + const GURL& current_url,
|
| + const GURL& new_url) {
|
| + return g_swap_processes_for_redirect;
|
| +}
|
| +
|
| #if defined(OS_ANDROID)
|
| void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
|
| const CommandLine& command_line,
|
|
|