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

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

Issue 2623553002: Set proper action name on Pay Intent (Closed)
Patch Set: Address review comments Created 3 years, 11 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java
index b9c40ded9b8ee5e88e283281fc072f93c802fef0..9850688e84dc2759c5ce39faee259253992124e1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java
@@ -30,6 +30,9 @@ import java.util.Set;
/** The point of interaction with a locally installed 3rd party native Android payment app. */
public class AndroidPaymentApp extends PaymentInstrument implements PaymentApp,
WindowAndroid.IntentCallback {
+ /** The action name for the Pay Intent. */
+ public static final String ACTION_PAY = "org.chromium.intent.action.PAY";
+
private static final String EXTRA_METHOD_NAME = "methodName";
private static final String EXTRA_DATA = "data";
private static final String EXTRA_ORIGIN = "origin";
@@ -61,6 +64,7 @@ public class AndroidPaymentApp extends PaymentInstrument implements PaymentApp,
mWebContents = webContents;
mPayIntent = new Intent();
mPayIntent.setClassName(packageName, activity);
+ mPayIntent.setAction(ACTION_PAY);
mMethodNames = new HashSet<>();
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698