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

Unified Diff: chrome/browser/android/payments/service_worker_payment_app_bridge.cc

Issue 2925063003: [Payments] Implement payment instrument icons (Closed)
Patch Set: fix comment lines 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/browser/android/payments/service_worker_payment_app_bridge.cc
diff --git a/chrome/browser/android/payments/service_worker_payment_app_bridge.cc b/chrome/browser/android/payments/service_worker_payment_app_bridge.cc
index 6fd1d02f951487c227b0a569b943a26ef0c249d4..98a4f2259830a5c161c65e363f8fc77008d679aa 100644
--- a/chrome/browser/android/payments/service_worker_payment_app_bridge.cc
+++ b/chrome/browser/android/payments/service_worker_payment_app_bridge.cc
@@ -16,6 +16,7 @@
#include "content/public/browser/stored_payment_instrument.h"
#include "content/public/browser/web_contents.h"
#include "jni/ServiceWorkerPaymentAppBridge_jni.h"
+#include "ui/gfx/android/java_bitmap.h"
namespace {
@@ -49,7 +50,8 @@ void OnGotAllPaymentApps(const JavaRef<jobject>& jweb_contents,
env, java_instruments, jweb_contents, instrument->registration_id,
ConvertUTF8ToJavaString(env, instrument->instrument_key),
ConvertUTF8ToJavaString(env, instrument->name),
- ToJavaArrayOfStrings(env, instrument->enabled_methods));
+ ToJavaArrayOfStrings(env, instrument->enabled_methods),
+ gfx::ConvertToJavaBitmap(instrument->icon.get()));
}
Java_ServiceWorkerPaymentAppBridge_onPaymentAppCreated(
env, java_instruments, jweb_contents, jcallback);

Powered by Google App Engine
This is Rietveld 408576698