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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp

Issue 2857583003: Worker: Avoid sending IPC messages for features already counted (Closed)
Patch Set: wip Created 3 years, 7 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/workers/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index a15ff0650f94f73d8df42d88f37bd53895c857a6..a88ef279d2dde2bca0c46c1e2becbfe2e94ab5e2 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -112,16 +112,15 @@ void WorkerGlobalScope::Dispose() {
thread_ = nullptr;
}
-void WorkerGlobalScope::CountFeature(UseCounter::Feature feature) {
+void WorkerGlobalScope::ReportFeature(UseCounter::Feature feature) {
DCHECK(IsContextThread());
DCHECK(thread_);
thread_->GetWorkerReportingProxy().CountFeature(feature);
}
-void WorkerGlobalScope::CountDeprecation(UseCounter::Feature feature) {
+void WorkerGlobalScope::ReportDeprecation(UseCounter::Feature feature) {
DCHECK(IsContextThread());
DCHECK(thread_);
- AddDeprecationMessage(feature);
thread_->GetWorkerReportingProxy().CountDeprecation(feature);
}

Powered by Google App Engine
This is Rietveld 408576698