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

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

Issue 2838433002: [Payments] Cache payment manifests. (Closed)
Patch Set: fix tests Created 3 years, 8 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/payments/android/payment_manifest_parser_android.cc
diff --git a/components/payments/content/android/payment_manifest_parser_android.cc b/chrome/browser/payments/android/payment_manifest_parser_android.cc
similarity index 94%
rename from components/payments/content/android/payment_manifest_parser_android.cc
rename to chrome/browser/payments/android/payment_manifest_parser_android.cc
index 65a3e26e4496a2c186467878ae5fd93662aaef06..9386cc34a7799fc75e64d42b042ba6abfde540ea 100644
--- a/components/payments/content/android/payment_manifest_parser_android.cc
+++ b/chrome/browser/payments/android/payment_manifest_parser_android.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/payments/content/android/payment_manifest_parser_android.h"
+#include "chrome/browser/payments/android/payment_manifest_parser_android.h"
#include <stddef.h>
@@ -12,6 +12,7 @@
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/numerics/safe_conversions.h"
+#include "chrome/browser/payments/android/payment_manifest_web_data_service_android.h"
#include "jni/PaymentManifestParser_jni.h"
#include "url/gurl.h"
@@ -90,6 +91,9 @@ class ParseCallback {
// Can trigger synchronous deletion of PaymentManifestParserAndroid.
Java_ManifestParseCallback_onWebAppManifestParseSuccess(env, jcallback_,
jmanifest.obj());
+
+ // Cache parsed web app manifest.
+ PaymentManifestWebDataServiceAndroid::AddPaymentWebAppManifest(manifest);
please use gerrit instead 2017/04/24 18:22:31 Please cache the manifests from PaymentMethodVerif
gogerald1 2017/04/26 13:46:32 Done.
}
private:

Powered by Google App Engine
This is Rietveld 408576698