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

Unified Diff: third_party/WebKit/Source/web/WebLeakDetector.cpp

Issue 1428383002: Make ResourceFetcher::m_documentResources use WeakPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODOs Created 5 years 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/core/testing/Internals.idl ('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/web/WebLeakDetector.cpp
diff --git a/third_party/WebKit/Source/web/WebLeakDetector.cpp b/third_party/WebKit/Source/web/WebLeakDetector.cpp
index 54c16242e9826b7459cf8f1f0f1d377faff17104..e334b9f547076870826a6097f22b7a1cddee9a2c 100644
--- a/third_party/WebKit/Source/web/WebLeakDetector.cpp
+++ b/third_party/WebKit/Source/web/WebLeakDetector.cpp
@@ -38,7 +38,6 @@
#include "core/dom/ActiveDOMObject.h"
#include "core/dom/Document.h"
#include "core/fetch/MemoryCache.h"
-#include "core/fetch/ResourceFetcher.h"
#include "core/inspector/InstanceCounters.h"
#include "core/layout/LayoutObject.h"
#include "core/workers/WorkerThread.h"
@@ -93,12 +92,6 @@ void WebLeakDetectorImpl::prepareForLeakDetection(WebLocalFrame* frame)
WorkerThread::terminateAndWaitForAllWorkers();
memoryCache()->evictResources();
- {
- RefPtrWillBeRawPtr<Document> document = PassRefPtrWillBeRawPtr<Document>(frame->document());
- if (ResourceFetcher* fetcher = document->fetcher())
- fetcher->garbageCollectDocumentResources();
- }
-
// FIXME: HTML5 Notification should be closed because notification affects the result of number of DOM objects.
V8PerIsolateData::from(isolate)->clearScriptRegexpContext();
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698