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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2553983002: [TEST ONLY] Call MemoryPressure-related things in implicitClose()
Patch Set: Critical Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 918fe8920fc185a7b77e0888895ed187d1baf7e1..68d08e767e72e55d7f7e7247dbf46a5910128731 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2863,6 +2863,13 @@ void Document::implicitClose() {
return;
}
+ // MemoryCoordinator::instance().onMemoryPressure(WebMemoryPressureLevelNone);
+ // MemoryCoordinator::instance().onMemoryPressure(WebMemoryPressureLevelModerate);
+ MemoryCoordinator::instance().onMemoryPressure(WebMemoryPressureLevelCritical);
+ // MemoryCoordinator::instance().onMemoryStateChange(MemoryState::SUSPENDED);
+ // MemoryCoordinator::instance().onMemoryStateChange(MemoryState::THROTTLED);
+ // MemoryCoordinator::instance().onMemoryStateChange(MemoryState::NORMAL);
+
m_loadEventProgress = LoadEventInProgress;
ScriptableDocumentParser* parser = scriptableDocumentParser();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698