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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp

Issue 2740253002: Remove FetchRequest::mutableResourceRequest() where removing is trivial (Closed)
Patch Set: Fix Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp
index bb139da37c4ad94374840eba18d29a0502589f9f..697e193230714443481fa807c92a858b70bcc86c 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp
@@ -267,9 +267,9 @@ class RequestSameResourceOnComplete
MockFetchContext* context =
MockFetchContext::create(MockFetchContext::kShouldLoadNewResource);
ResourceFetcher* fetcher2 = ResourceFetcher::create(context);
- FetchRequest fetchRequest2(m_resource->url(), FetchInitiatorInfo());
- fetchRequest2.mutableResourceRequest().setCachePolicy(
- WebCachePolicy::ValidatingCacheData);
+ ResourceRequest resourceRequest2(m_resource->url());
+ resourceRequest2.setCachePolicy(WebCachePolicy::ValidatingCacheData);
+ FetchRequest fetchRequest2(resourceRequest2, FetchInitiatorInfo());
Resource* resource2 = MockResource::fetch(fetchRequest2, fetcher2);
EXPECT_EQ(m_resource, resource2);
m_notifyFinishedCalled = true;
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698