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

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

Issue 2855883004: Rename Resource::GetError() to FinishAsError() (Closed)
Patch Set: Rebase Created 3 years, 7 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/platform/loader/fetch/Resource.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/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index 2e546b394cbbd2a2a8b019aa276fc451ad4a7580..448a4f1b3ed22cfc431f99d7a0508f2cb8d99763 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -451,7 +451,7 @@ Resource* ResourceFetcher::ResourceForBlockedRequest(
ResourceRequestBlockedReason blocked_reason) {
Resource* resource = factory.Create(params.GetResourceRequest(),
params.Options(), params.Charset());
- resource->GetError(ResourceError::CancelledDueToAccessCheckError(
+ resource->FinishAsError(ResourceError::CancelledDueToAccessCheckError(
params.Url(), blocked_reason));
return resource;
}
@@ -1317,7 +1317,7 @@ void ResourceFetcher::HandleLoaderError(Resource* resource,
if (error.IsCancellation())
RemovePreload(resource);
- resource->GetError(error);
+ resource->FinishAsError(error);
HandleLoadCompletion(resource);
}
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/Resource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698