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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp

Issue 1434383002: Oilpan: move InspectedFrames to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix incorrect OwnPtr<> use Created 5 years, 1 month 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/inspector/InspectorResourceContentLoader.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
index 5ce3fd9a73b8d4ca7bd8c4dce209cf5151d852e4..0a308187fab5c8b9650b7467865d89105435e866 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
@@ -93,7 +93,8 @@ void InspectorResourceContentLoader::start()
{
m_started = true;
WillBeHeapVector<RawPtrWillBeMember<Document>> documents;
- for (LocalFrame* frame : InspectedFrames(m_inspectedFrame)) {
+ OwnPtrWillBeRawPtr<InspectedFrames> inspectedFrames = InspectedFrames::create(m_inspectedFrame);
+ for (LocalFrame* frame : *inspectedFrames) {
documents.append(frame->document());
documents.appendVector(InspectorPageAgent::importsForFrame(frame));
}

Powered by Google App Engine
This is Rietveld 408576698