Chromium Code Reviews| 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 4e26a86cb19dc80ed67128700781ae84ac81f33d..6eb9f872f846276fec096ede16541bdbef558aef 100644 |
| --- a/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp |
| +++ b/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp |
| @@ -34,7 +34,6 @@ |
| #include "core/dom/ExceptionCode.h" |
| #include "core/events/ProgressEvent.h" |
| #include "core/fileapi/Blob.h" |
| -#include "core/inspector/InspectorInstrumentation.h" |
| #include "public/platform/WebFileWriter.h" |
| #include "public/platform/WebURL.h" |
| #include "wtf/CurrentTime.h" |
| @@ -63,7 +62,6 @@ FileWriter::FileWriter(ExecutionContext* context) |
| , m_numAborts(0) |
| , m_recursionDepth(0) |
| , m_lastProgressNotificationTimeMS(0) |
| - , m_asyncOperationId(0) |
| { |
| } |
| @@ -250,7 +248,6 @@ void FileWriter::completeAbort() |
| void FileWriter::doOperation(Operation operation) |
| { |
| - m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(getExecutionContext(), "FileWriter", m_asyncOperationId); |
|
dgozman
2016/04/06 02:31:08
Bring it back!
|
| switch (operation) { |
| case OperationWrite: |
| ASSERT(m_operationInProgress == OperationNone); |
| @@ -298,19 +295,14 @@ void FileWriter::signalCompletion(FileError::ErrorCode code) |
| } else |
| fireEvent(EventTypeNames::write); |
| fireEvent(EventTypeNames::writeend); |
| - |
| - InspectorInstrumentation::traceAsyncOperationCompleted(getExecutionContext(), m_asyncOperationId); |
| - m_asyncOperationId = 0; |
| } |
| void FileWriter::fireEvent(const AtomicString& type) |
| { |
| - InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsyncCallbackStarting(getExecutionContext(), m_asyncOperationId); |
| ++m_recursionDepth; |
| dispatchEvent(ProgressEvent::create(type, true, m_bytesWritten, m_bytesToWrite)); |
| --m_recursionDepth; |
| ASSERT(m_recursionDepth >= 0); |
| - InspectorInstrumentation::traceAsyncCallbackCompleted(cookie); |
| } |
| void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& exceptionState) |