| 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 542428eb93bf8dc8da6325ff72a2098e4914849a..db98df10395a7cc1dee17911fa0b4416694a69ec 100644
|
| --- a/third_party/WebKit/Source/core/fileapi/FileReader.cpp
|
| +++ b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
|
| @@ -39,7 +39,6 @@
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/events/ProgressEvent.h"
|
| #include "core/fileapi/File.h"
|
| -#include "core/inspector/InspectorInstrumentation.h"
|
| #include "platform/Logging.h"
|
| #include "platform/Supplementable.h"
|
| #include "wtf/CurrentTime.h"
|
| @@ -97,7 +96,6 @@ public:
|
| if (!controller)
|
| return;
|
|
|
| - reader->m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(context, "FileReader");
|
| controller->pushReader(reader);
|
| }
|
|
|
| @@ -112,8 +110,6 @@ public:
|
|
|
| static void finishReader(ExecutionContext* context, FileReader* reader, FinishReaderType nextStep)
|
| {
|
| - InspectorInstrumentation::traceAsyncOperationCompleted(context, reader->m_asyncOperationId);
|
| -
|
| ThrottlingController* controller = from(context);
|
| if (!controller)
|
| return;
|
| @@ -208,7 +204,6 @@ FileReader::FileReader(ExecutionContext* context)
|
| , m_loadingState(LoadingStateNone)
|
| , m_readType(FileReaderLoader::ReadAsBinaryString)
|
| , m_lastProgressNotificationTimeMS(0)
|
| - , m_asyncOperationId(0)
|
| {
|
| }
|
|
|
| @@ -453,10 +448,8 @@ void FileReader::didFail(FileError::ErrorCode errorCode)
|
|
|
| void FileReader::fireEvent(const AtomicString& type)
|
| {
|
| - InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsyncCallbackStarting(getExecutionContext(), m_asyncOperationId);
|
| if (!m_loader) {
|
| dispatchEvent(ProgressEvent::create(type, false, 0, 0));
|
| - InspectorInstrumentation::traceAsyncCallbackCompleted(cookie);
|
| return;
|
| }
|
|
|
| @@ -464,8 +457,6 @@ void FileReader::fireEvent(const AtomicString& type)
|
| dispatchEvent(ProgressEvent::create(type, true, m_loader->bytesLoaded(), m_loader->totalBytes()));
|
| else
|
| dispatchEvent(ProgressEvent::create(type, false, m_loader->bytesLoaded(), 0));
|
| -
|
| - InspectorInstrumentation::traceAsyncCallbackCompleted(cookie);
|
| }
|
|
|
| DEFINE_TRACE(FileReader)
|
|
|