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

Unified Diff: Source/core/loader/DocumentLoader.cpp

Issue 374053002: Oilpan: move MHTML objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make MHTMLArchive.h self-contained/closed. Created 6 years, 5 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 | « Source/core/loader/DocumentLoader.h ('k') | Source/platform/mhtml/ArchiveResource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index d8fe8e98cf13aad3ae3c2906a235eaf3996be5ba..83ddc49d44fbb1da20b5fc1e9bf998d2f496947d 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -52,6 +52,7 @@
#include "core/frame/Settings.h"
#include "platform/Logging.h"
#include "platform/UserGestureIndicator.h"
+#include "platform/mhtml/ArchiveResource.h"
#include "platform/mhtml/ArchiveResourceCollection.h"
#include "platform/mhtml/MHTMLArchive.h"
#include "platform/plugins/PluginData.h"
@@ -622,7 +623,7 @@ void DocumentLoader::addAllArchiveResources(MHTMLArchive* archive)
{
ASSERT(archive);
if (!m_archiveResourceCollection)
- m_archiveResourceCollection = adoptPtr(new ArchiveResourceCollection);
+ m_archiveResourceCollection = ArchiveResourceCollection::create();
m_archiveResourceCollection->addAllResources(archive);
}
« no previous file with comments | « Source/core/loader/DocumentLoader.h ('k') | Source/platform/mhtml/ArchiveResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698