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

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

Issue 1101583003: compositor-worker: Restrict the global interface in CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 8 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: Source/core/workers/WorkerGlobalScope.cpp
diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp
index 024119b7d05de2a134501d154af9c7d6e90e95ef..4a5049f37c4b7bee9dc81abe86c63974b4c02ea7 100644
--- a/Source/core/workers/WorkerGlobalScope.cpp
+++ b/Source/core/workers/WorkerGlobalScope.cpp
@@ -342,7 +342,7 @@ void WorkerGlobalScope::countDeprecation(UseCounter::Feature feature) const
{
// FIXME: How should we count features for shared/service workers?
- ASSERT(isSharedWorkerGlobalScope() || isServiceWorkerGlobalScope());
+ ASSERT(isSharedWorkerGlobalScope() || isServiceWorkerGlobalScope() || isCompositorWorkerGlobalScope());
// For each deprecated feature, send console message at most once
// per worker lifecycle.
if (!m_deprecationWarningBits.hasRecordedMeasurement(feature)) {

Powered by Google App Engine
This is Rietveld 408576698