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

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

Issue 2680363003: Deprecate FileReaderSync in service workers. (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 05dc1e43ef4be857448212d4450f97d2f0c3c0b1..100940f48f97aa991b09819cf7bf397ba0abe029 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
@@ -36,6 +36,7 @@
#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 {
@@ -53,6 +54,11 @@ 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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698