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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 579a3667325526cc532e4db23babe049d21f3385..a8df0f1a1eb77fa726e9412f3888893a741e2d33 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -541,11 +541,12 @@ void Resource::setRevalidatingRequest(const ResourceRequest& request)
m_status = NotStarted;
}
-void Resource::willFollowRedirect(ResourceRequest& newRequest, const ResourceResponse& redirectResponse)
+bool Resource::willFollowRedirect(ResourceRequest& newRequest, const ResourceResponse& redirectResponse)
{
if (m_isRevalidating)
revalidationFailed();
m_redirectChain.append(RedirectPair(newRequest, redirectResponse));
+ return true;
}
void Resource::setResponse(const ResourceResponse& response)

Powered by Google App Engine
This is Rietveld 408576698