summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_content_browser_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chrome_content_browser_client.cc')
-rw-r--r--chrome/browser/chrome_content_browser_client.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 821e4a5..4facf9d 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -72,6 +72,7 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/extension_process_policy.h"
#include "chrome/common/extensions/extension_set.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/pref_names.h"
@@ -682,6 +683,15 @@ bool ChromeContentBrowserClient::ShouldSwapProcessesForNavigation(
return false;
}
+bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect(
+ content::ResourceContext* resource_context, const GURL& current_url,
+ const GURL& new_url) {
+ ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
+ return extensions::CrossesExtensionProcessBoundary(
+ io_data->GetExtensionInfoMap()->extensions(),
+ ExtensionURLInfo(current_url), ExtensionURLInfo(new_url));
+}
+
std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName(
const std::string& alias_name) {
return CharacterEncoding::GetCanonicalEncodingNameByAliasName(alias_name);