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/modules/crypto/SubtleCrypto.cpp

Issue 2709613009: [WebCrypto] Use Deprecation instead of UseCounter (Closed)
Patch Set: rebased 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 | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
index 9d8c75e5deb39fce411ec48c6b6b663ad104e615..0214b7adfe4f94329619a4ad10d06e24dfcd7a1d 100644
--- a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
+++ b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
@@ -35,7 +35,7 @@
#include "core/dom/DOMArrayBufferView.h"
#include "core/dom/DOMArrayPiece.h"
#include "core/dom/ExecutionContext.h"
-#include "core/frame/UseCounter.h"
+#include "core/frame/Deprecation.h"
#include "modules/crypto/CryptoHistograms.h"
#include "modules/crypto/CryptoKey.h"
#include "modules/crypto/CryptoResultImpl.h"
@@ -67,7 +67,7 @@ static bool canAccessWebCrypto(ScriptState* scriptState, CryptoResult* result) {
}
if (!scriptState->getExecutionContext()->isSecureContext()) {
- UseCounter::count(
+ Deprecation::countDeprecation(
scriptState->getExecutionContext(),
UseCounter::SubtleCryptoOnlyStrictSecureContextCheckFailed);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698