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

Unified Diff: content/browser/loader/cross_site_resource_handler.cc

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 5 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: content/browser/loader/cross_site_resource_handler.cc
diff --git a/content/browser/loader/cross_site_resource_handler.cc b/content/browser/loader/cross_site_resource_handler.cc
index ad6397a1f1996d09b4cd2680158d8cea531622a1..f8a5e371e103640c85cf0f02936c02c768ae968e 100644
--- a/content/browser/loader/cross_site_resource_handler.cc
+++ b/content/browser/loader/cross_site_resource_handler.cc
@@ -134,7 +134,7 @@ bool CrossSiteResourceHandler::OnRequestRedirected(
bool* defer) {
// Top-level requests change their cookie first-party URL on redirects, while
// subframes retain the parent's value.
- if (GetRequestInfo()->GetResourceType() == ResourceType::MAIN_FRAME)
+ if (GetRequestInfo()->GetResourceType() == RESOURCE_TYPE_MAIN_FRAME)
request()->set_first_party_for_cookies(new_url);
// We should not have started the transition before being redirected.
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698