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

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 9271ff3424ae4c4d85ef0c0b2bd035d2808f6228..3977fd7895c3b307eccf9f16287645cea5da7591 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