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

Unified Diff: content/child/web_url_loader_impl_unittest.cc

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed jochen's point 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: content/child/web_url_loader_impl_unittest.cc
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
index 3895a60b03a1676eff6cfbc0f65705ed29fd6c3a..2229f53aedb6be25917d43f7cfe31335c8a39af1 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -139,7 +139,7 @@ class TestWebURLLoaderClient : public blink::WebURLLoaderClient {
~TestWebURLLoaderClient() override {}
// blink::WebURLLoaderClient implementation:
- void willFollowRedirect(blink::WebURLLoader* loader,
+ bool willFollowRedirect(blink::WebURLLoader* loader,
blink::WebURLRequest& newRequest,
const blink::WebURLResponse& redirectResponse,
int64_t encodedDataLength) override {
@@ -155,6 +155,8 @@ class TestWebURLLoaderClient : public blink::WebURLLoaderClient {
if (delete_on_receive_redirect_)
loader_.reset();
+
+ return true;
}
void didSendData(blink::WebURLLoader* loader,

Powered by Google App Engine
This is Rietveld 408576698