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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReader.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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/fileapi/FileReader.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReader.cpp b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
index ed43618710c64822ce8ad9d263b7b29e570979fc..9017fb79b94328a318b702d3c7720f3675051243 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReader.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
@@ -206,15 +206,16 @@ const AtomicString& FileReader::interfaceName() const {
return EventTargetNames::FileReader;
}
-void FileReader::contextDestroyed() {
+void FileReader::contextDestroyed(ExecutionContext* destroyedContext) {
// The delayed abort task tidies up and advances to the DONE state.
if (m_loadingState == LoadingStateAborted)
return;
- if (hasPendingActivity())
+ if (hasPendingActivity()) {
ThrottlingController::finishReader(
- getExecutionContext(), this,
- ThrottlingController::removeReader(getExecutionContext(), this));
+ destroyedContext, this,
+ ThrottlingController::removeReader(destroyedContext, this));
+ }
terminate();
}
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReader.h ('k') | third_party/WebKit/Source/core/frame/DOMTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698