Chromium Code Reviews| 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 3b4554871dee346d4e92f38164d1dc2f114245c7..ec4f65fdd943b22b502b2567870d7cdfff90c623 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"); |
|
dgozman
2016/04/06 02:31:08
Bring it back!
|
| 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; |
| @@ -206,7 +202,6 @@ FileReader::FileReader(ExecutionContext* context) |
| , m_loadingState(LoadingStateNone) |
| , m_readType(FileReaderLoader::ReadAsBinaryString) |
| , m_lastProgressNotificationTimeMS(0) |
| - , m_asyncOperationId(0) |
| { |
| } |
| @@ -451,10 +446,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; |
| } |
| @@ -462,8 +455,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) |