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

Unified Diff: chrome/browser/autofill/android/personal_data_manager_android.h

Issue 2526943003: [Payments] Remove country from shipping label in bottom and fullsheet. (Closed)
Patch Set: Moved assertion Created 4 years, 1 month 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/browser/autofill/android/personal_data_manager_android.h
diff --git a/chrome/browser/autofill/android/personal_data_manager_android.h b/chrome/browser/autofill/android/personal_data_manager_android.h
index 9a78511085bc7b64c87d95ca9b3aa3892647bf5e..5f48ea02e66234f8397df65cb55bab583a4844c5 100644
--- a/chrome/browser/autofill/android/personal_data_manager_android.h
+++ b/chrome/browser/autofill/android/personal_data_manager_android.h
@@ -100,7 +100,16 @@ class PersonalDataManagerAndroid
// label does not contain the full name or the email address. All other fields
// are included in the label.
base::android::ScopedJavaLocalRef<jstring>
- GetShippingAddressLabelForPaymentRequest(
+ GetShippingAddressLabelWithCountryForPaymentRequest(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& unused_obj,
+ const base::android::JavaParamRef<jobject>& jprofile);
+
+ // Returns the shipping label of the given profile for PaymentRequest. This
+ // label does not contain the full name, the email address or the country. All
+ // other fields are included in the label.
+ base::android::ScopedJavaLocalRef<jstring>
+ GetShippingAddressLabelWithoutCountryForPaymentRequest(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& unused_obj,
const base::android::JavaParamRef<jobject>& jprofile);
@@ -354,6 +363,16 @@ class PersonalDataManagerAndroid
bool include_country_in_label,
std::vector<AutofillProfile*> profiles);
+ // Returns the shipping label of the given profile for PaymentRequest. This
+ // label does not contain the full name or the email address but will include
+ // the country depending on the value of |include_country_in_label|. All other
+ // fields are included in the label.
+ base::android::ScopedJavaLocalRef<jstring>
+ GetShippingAddressLabelForPaymentRequest(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jprofile,
+ bool inlude_country_in_label);
+
// Pointer to the java counterpart.
JavaObjectWeakGlobalRef weak_java_obj_;

Powered by Google App Engine
This is Rietveld 408576698