commit | e0f35c91db833cf91df215ad3baf1471f6d5f962 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed May 08 16:04:34 2013 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed May 08 16:04:34 2013 |
tree | a552beed80f52a83d58248873977f79916f9ef7b | |
parent | 5be833caea8b86647772bc9829c4dacc1fc3d7b9 [diff] [blame] |
Removed static factories for data, ftp, file, and about jobs. Instead add corresponding ProtocolHandlers as needed. Remove URLRequestContext members used by these static factories. Bake FtpAuthCache into FtpProtocolHandler as it was already unique per FtpProtocolHandler. This is a revived version of http://crrev.com/10836206 BUG=142945 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188912 Review URL: https://chromiumcodereview.appspot.com/11931024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198915 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/child_process_security_policy_unittest.cc b/content/browser/child_process_security_policy_unittest.cc index 6aad9d9..e4c5f38 100644 --- a/content/browser/child_process_security_policy_unittest.cc +++ b/content/browser/child_process_security_policy_unittest.cc
@@ -59,7 +59,13 @@ // Claim to always handle chrome:// URLs because the CPSP's notion of // allowing WebUI bindings is hard-wired to this particular scheme. - test_browser_client_.AddScheme("chrome"); + test_browser_client_.AddScheme(chrome::kChromeUIScheme); + + // Claim to always handle file:// URLs like the browser would. + // net::URLRequest::IsHandledURL() no longer claims support for default + // protocols as this is the responsibility of the browser (which is + // responsible for adding the appropriate ProtocolHandler). + test_browser_client_.AddScheme(chrome::kFileScheme); } virtual void TearDown() {