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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp

Issue 2865023003: Warn web developers that card networks as method names are deprecated. (Closed)
Patch Set: Rebase 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
« 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/payments/PaymentRequest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
index 4efaafb390fb621742b96b7e76a47f3849896253..2fb710318251e0dcc9d841b5399377e39fa2ebce 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -19,8 +19,8 @@
#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/events/EventQueue.h"
+#include "core/frame/Deprecation.h"
#include "core/frame/FrameOwner.h"
-#include "core/frame/UseCounter.h"
#include "core/html/HTMLIFrameElement.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/inspector/ConsoleTypes.h"
@@ -439,7 +439,7 @@ void StringifyAndParseMethodSpecificData(
for (size_t i = 0; i < arraysize(kBasicCardNetworks); ++i) {
if (supported_methods.Contains(kBasicCardNetworks[i].name)) {
- UseCounter::Count(
+ Deprecation::CountDeprecation(
&execution_context,
UseCounter::kPaymentRequestNetworkNameInSupportedMethods);
break;
« 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