Remove unnecessary call to set_first_party_for_cookies.

Appears to no longer be needed after the changes to navigation transfers,
now that the transfer happens at commit and the resource handler is
preserved.

BUG=262860
TEST=ResourceDispatcherHostBrowserTest.CookiePolicy still passes.
[email protected]

Review URL: https://codereview.chromium.org/117623003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241606 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc
index 2f2182c..886dba4 100644
--- a/content/browser/loader/resource_loader.cc
+++ b/content/browser/loader/resource_loader.cc
@@ -161,16 +161,10 @@
   }
 }
 
-void ResourceLoader::MarkAsTransferring(const GURL& target_url) {
+void ResourceLoader::MarkAsTransferring() {
   CHECK(ResourceType::IsFrame(GetRequestInfo()->GetResourceType()))
       << "Can only transfer for navigations";
   is_transferring_ = true;
-
-  // When transferring a request to another process, the renderer doesn't get
-  // a chance to update the cookie policy URL. Do it here instead.
-  // TODO(creis): Remove this in https://codereview.chromium.org/117623003/.
-  if (GetRequestInfo()->GetResourceType() == ResourceType::MAIN_FRAME)
-    request()->set_first_party_for_cookies(target_url);
 }
 
 void ResourceLoader::CompleteTransfer() {