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

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

Issue 2753943002: Disable FileReaderSync in service workers. (Closed)
Patch Set: remove entry from UseCounter.h as well Created 3 years, 9 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/FileReaderSync.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp b/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
index 100940f48f97aa991b09819cf7bf397ba0abe029..05dc1e43ef4be857448212d4450f97d2f0c3c0b1 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
@@ -36,7 +36,6 @@
#include "core/fileapi/Blob.h"
#include "core/fileapi/FileError.h"
#include "core/fileapi/FileReaderLoader.h"
-#include "core/frame/Deprecation.h"
#include "platform/Histogram.h"
namespace blink {
@@ -54,11 +53,6 @@ enum class WorkerType {
} // namespace
FileReaderSync::FileReaderSync(ExecutionContext* context) {
- if (context->isServiceWorkerGlobalScope()) {
- Deprecation::countDeprecation(context,
- UseCounter::FileReaderSyncInServiceWorker);
- }
-
WorkerType type = WorkerType::OTHER;
if (context->isDedicatedWorkerGlobalScope())
type = WorkerType::DEDICATED_WORKER;

Powered by Google App Engine
This is Rietveld 408576698