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

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 2919313004: Get rid of URLLoaderFactory in browser-side case (Closed)
Patch Set: . Created 3 years, 6 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/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index cbbedc1f236c4f363a491d98a54dfa6a9034e835..b9865ff1337265c1ed16df7b45cb7bc377560c52 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -2390,11 +2390,16 @@ namespace {
class FailingURLLoaderImpl : public mojom::URLLoader {
public:
explicit FailingURLLoaderImpl(mojom::URLLoaderClientPtr client) {
+ Start(mojom::URLLoaderAssociatedRequest(), std::move(client));
+ }
+
+ private:
+ void Start(mojom::URLLoaderAssociatedRequest request,
+ mojom::URLLoaderClientPtr client) override {
ResourceRequestCompletionStatus status;
status.error_code = net::ERR_NOT_IMPLEMENTED;
client->OnComplete(status);
}
-
void FollowRedirect() override {}
void SetPriority(net::RequestPriority priority,
int32_t intra_priority_value) override {}

Powered by Google App Engine
This is Rietveld 408576698