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

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

Issue 348743006: Outline ContentSecurityPolicy::document() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/core/html/HTMLTrackElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/DedicatedWorkerGlobalScope.cpp
diff --git a/Source/core/workers/DedicatedWorkerGlobalScope.cpp b/Source/core/workers/DedicatedWorkerGlobalScope.cpp
index f52576759c4a222cdb176e7bac7a47f7835180fa..e05fadef95149947083acd8287255b16527cc115 100644
--- a/Source/core/workers/DedicatedWorkerGlobalScope.cpp
+++ b/Source/core/workers/DedicatedWorkerGlobalScope.cpp
@@ -97,10 +97,11 @@ private:
virtual void performTask(ExecutionContext* context) OVERRIDE
{
+ ASSERT(context->isDocument());
if (m_isDeprecation)
- UseCounter::countDeprecation(*toDocument(context), m_feature);
+ UseCounter::countDeprecation(context, m_feature);
else
- UseCounter::count(*toDocument(context), m_feature);
+ UseCounter::count(context, m_feature);
}
UseCounter::Feature m_feature;
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698