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

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.cpp

Issue 2649853003: Make Resource::setResponse() private
Patch Set: Rebase Created 3 years, 11 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/html/ImageDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
index 06ee1efe7b7fac4073ffbda6ec98e93140755ff8..0ffbc631df622070cba0dba770bc7a9458be7a2d 100644
--- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
+++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
@@ -168,7 +168,7 @@ void ImageDocumentParser::finish() {
// TODO(hiroshige): Use ImageResourceContent instead of ImageResource.
ImageResource* cachedImage = document()->cachedImageResourceDeprecated();
DocumentLoader* loader = document()->loader();
- cachedImage->setResponse(loader->response());
+ cachedImage->responseReceived(loader->response(), nullptr);
cachedImage->finish(loader->timing().responseEnd());
// Report the natural image size in the page title, regardless of zoom

Powered by Google App Engine
This is Rietveld 408576698