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

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

Issue 2689463002: Replace OnMemoryStateChange() with OnPurgeMemory() in blink (Closed)
Patch Set: Created 3 years, 10 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/dom/PendingScript.cpp
diff --git a/third_party/WebKit/Source/core/dom/PendingScript.cpp b/third_party/WebKit/Source/core/dom/PendingScript.cpp
index f3eb537e42adb7bd885316aae6fffbcb2c5d054c..4507e23771232f77eff96ac701cb9f45a30af28f 100644
--- a/third_party/WebKit/Source/core/dom/PendingScript.cpp
+++ b/third_party/WebKit/Source/core/dom/PendingScript.cpp
@@ -218,9 +218,7 @@ bool PendingScript::errorOccurred() const {
return false;
}
-void PendingScript::onMemoryStateChange(MemoryState state) {
- if (state != MemoryState::SUSPENDED)
- return;
+void PendingScript::onPurgeMemory() {
if (!m_streamer)
return;
m_streamer->cancel();
« no previous file with comments | « third_party/WebKit/Source/core/dom/PendingScript.h ('k') | third_party/WebKit/Source/platform/MemoryCoordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698