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

Unified Diff: Source/core/page/ContentSecurityPolicy.cpp

Issue 14146021: Move deprecation messages to UseCounter::measureDeprecatedFeature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.idl ('k') | Source/core/page/PageConsole.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/ContentSecurityPolicy.cpp
diff --git a/Source/core/page/ContentSecurityPolicy.cpp b/Source/core/page/ContentSecurityPolicy.cpp
index a5095684ce8c246238af071cfb660ec05d3e04ce..0e881f4a2e077cac83c93f460f0f9af7b04f87f3 100644
--- a/Source/core/page/ContentSecurityPolicy.cpp
+++ b/Source/core/page/ContentSecurityPolicy.cpp
@@ -1458,10 +1458,10 @@ void ContentSecurityPolicy::didReceiveHeader(const String& header, HeaderType ty
{
if (m_scriptExecutionContext->isDocument()) {
Document* document = toDocument(m_scriptExecutionContext);
- UseCounter::observe(document, getUseCounterType(type));
-
if (type == PrefixedReport || type == PrefixedEnforce)
- PageConsole::reportDeprecation(document, PageConsole::PrefixedContentSecurityPolicyHeader);
+ UseCounter::measureDeprecatedFeature(document, getUseCounterType(type));
+ else
+ UseCounter::observe(document, getUseCounterType(type));
}
// RFC2616, section 4.2 specifies that headers appearing multiple times can
« no previous file with comments | « Source/core/html/HTMLMediaElement.idl ('k') | Source/core/page/PageConsole.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698