Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2674)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 10414035: Move TransferNavigationResourceThrottle to content since that's where it belongs. This is a step in… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 138143)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -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 @@
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);

Powered by Google App Engine
This is Rietveld 408576698