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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java

Issue 2923243003: Merge-60 [Payments] Move the RequestedInformation metric to native. (Closed)
Patch Set: Created 3 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
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java
deleted file mode 100644
index c15b5fdacf4a4d82ba141652370c16c4c7f1583d..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.payments;
-
-import org.chromium.base.metrics.RecordHistogram;
-
-/**
- * A class used to record metrics for the Payment Request feature.
- */
-public final class PaymentRequestMetrics {
- // There should be no instance of PaymentRequestMetrics created.
- private PaymentRequestMetrics() {}
-
- /*
- * Records the metric that keeps track of what user information are requested by merchants to
- * complete a payment request.
- *
- * @param requestEmail Whether the merchant requested an email address.
- * @param requestPhone Whether the merchant requested a phone number.
- * @param requestShipping Whether the merchant requested a shipping address.
- * @param requestName Whether the merchant requestes a name.
- */
- public static void recordRequestedInformationHistogram(boolean requestEmail,
- boolean requestPhone, boolean requestShipping, boolean requestName) {
- int requestInformation = (requestEmail ? RequestedInformation.EMAIL : 0)
- | (requestPhone ? RequestedInformation.PHONE : 0)
- | (requestShipping ? RequestedInformation.SHIPPING : 0)
- | (requestName ? RequestedInformation.NAME : 0);
- RecordHistogram.recordEnumeratedHistogram("PaymentRequest.RequestedInformation",
- requestInformation, RequestedInformation.MAX);
- }
-}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java ('k') | chrome/android/java_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698