Index: third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp |
diff --git a/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp b/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp |
index 06d0234b67c6af8bcbd42bf367d70bd62bff85d5..b54e1f57895dbb7463e47a84fbe90940319a9a10 100644 |
--- a/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp |
+++ b/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp |
@@ -472,7 +472,7 @@ void CrossOriginAccessControl::RedirectErrorString( |
} |
bool CrossOriginAccessControl::HandleRedirect( |
- PassRefPtr<SecurityOrigin> security_origin, |
+ RefPtr<SecurityOrigin> current_security_origin, |
ResourceRequest& new_request, |
const ResourceResponse& redirect_response, |
StoredCredentials with_credentials, |
@@ -482,8 +482,6 @@ bool CrossOriginAccessControl::HandleRedirect( |
const KURL& last_url = redirect_response.Url(); |
const KURL& new_url = new_request.Url(); |
- RefPtr<SecurityOrigin> current_security_origin = security_origin; |
- |
RefPtr<SecurityOrigin> new_security_origin = current_security_origin; |
// TODO(tyoshino): This should be fixed to check not only the last one but |