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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileWriter.cpp

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp b/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
index 411db19df3a9ca5bad5e4b618768edf2f7c032b6..778dd960172d60b314f86d2d22f9ff763fc150f8 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
@@ -44,13 +44,11 @@ static const int kMaxRecursionDepth = 3;
static const double progressNotificationIntervalMS = 50;
FileWriter* FileWriter::create(ExecutionContext* context) {
- FileWriter* fileWriter = new FileWriter(context);
- fileWriter->suspendIfNeeded();
- return fileWriter;
+ return new FileWriter(context);
}
FileWriter::FileWriter(ExecutionContext* context)
- : SuspendableObject(context),
+ : ContextLifecycleObserver(context),
m_readyState(kInit),
m_operationInProgress(OperationNone),
m_queuedOperation(OperationNone),
@@ -311,7 +309,7 @@ DEFINE_TRACE(FileWriter) {
visitor->trace(m_blobBeingWritten);
EventTargetWithInlineData::trace(visitor);
FileWriterBase::trace(visitor);
- SuspendableObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/filesystem/FileWriter.h ('k') | third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698