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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp

Issue 2536553002: Simplify: remove PendingScript::releaseElementAndClear (Closed)
Patch Set: git cl try Created 4 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/bindings/core/v8/ScriptStreamerTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
index 79aa610af8b5a94f7ffb6286775e4c5fd2e48fe6..31b569854020a6170bd15e6e55e09323245bc5b1 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
@@ -196,8 +196,7 @@ TEST_F(ScriptStreamingTest, CancellingStreaming) {
// Simulate cancelling the network load (e.g., because the user navigated
// away).
EXPECT_FALSE(client->finished());
- getPendingScript()->stopWatchingForLoad();
- getPendingScript()->releaseElementAndClear();
+ getPendingScript()->dispose();
m_pendingScript = nullptr; // This will destroy m_resource.
m_resource = nullptr;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.h » ('j') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698