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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 2054643003: Remove duplication of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on hiroshige's review Created 4 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: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index 554ef07d132cb9a38bbd276a051c2edb736dd222..93d37179727b88eca6458541bbb12d0c4fee1558 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -893,7 +893,7 @@ ArchiveResource* ResourceFetcher::createArchive(Resource* resource)
// Only the top-frame can load MHTML.
if (!context().isMainFrame())
return nullptr;
- m_archive = MHTMLArchive::create(resource->url(), resource->resourceBuffer());
+ m_archive = MHTMLArchive::create(resource->url(), resource->resourceBuffer().get());
return m_archive ? m_archive->mainResource() : nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698