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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestFactory.java

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo
Patch Set: thestig@ & esprehn@ comments Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.payments;
6
7 import android.content.Context;
8
9 import org.chromium.content.browser.ServiceRegistry.ImplementationFactory;
10 import org.chromium.mojom.payments.PaymentRequest;
11
12 /**
13 * Creates instances of PaymentRequest.
14 */
15 public class PaymentRequestFactory implements ImplementationFactory<PaymentReque st> {
16 private final Context mApplicationContext;
17
18 /**
19 * Builds a factory for PaymentRequest.
20 *
21 * @param applicationContext The application context.
22 */
23 public PaymentRequestFactory(Context applicationContext) {
24 mApplicationContext = applicationContext;
25 }
26
27 @Override
28 public PaymentRequest createImpl() {
29 return new PaymentRequestDialog(mApplicationContext);
30 }
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698