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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.cc

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mobile specific infobar delegate. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/test_autofill_client.h" 5 #include "components/autofill/core/browser/test_autofill_client.h"
6 6
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
8 8
9 namespace autofill { 9 namespace autofill {
10 10
11 TestAutofillClient::TestAutofillClient() 11 TestAutofillClient::TestAutofillClient()
12 : token_service_(new FakeOAuth2TokenService()), 12 : token_service_(new FakeOAuth2TokenService()),
13 identity_provider_(new FakeIdentityProvider(token_service_.get())), 13 identity_provider_(new FakeIdentityProvider(token_service_.get())),
14 rappor_service_(new rappor::TestRapporService()), 14 rappor_service_(new rappor::TestRapporService()),
15 is_context_secure_(true) { 15 is_context_secure_(true) {
16 } 16 }
17
17 TestAutofillClient::~TestAutofillClient() { 18 TestAutofillClient::~TestAutofillClient() {
18 } 19 }
19 20
20 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() { 21 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() {
21 return nullptr; 22 return nullptr;
22 } 23 }
23 24
24 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() { 25 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() {
25 return scoped_refptr<AutofillWebDataService>(nullptr); 26 return scoped_refptr<AutofillWebDataService>(nullptr);
26 } 27 }
(...skipping 14 matching lines...) Expand all
41 } 42 }
42 43
43 void TestAutofillClient::ShowAutofillSettings() { 44 void TestAutofillClient::ShowAutofillSettings() {
44 } 45 }
45 46
46 void TestAutofillClient::ShowUnmaskPrompt( 47 void TestAutofillClient::ShowUnmaskPrompt(
47 const CreditCard& card, 48 const CreditCard& card,
48 base::WeakPtr<CardUnmaskDelegate> delegate) { 49 base::WeakPtr<CardUnmaskDelegate> delegate) {
49 } 50 }
50 51
51 void TestAutofillClient::OnUnmaskVerificationResult(PaymentsRpcResult result) {} 52 void TestAutofillClient::OnUnmaskVerificationResult(PaymentsRpcResult result) {
53 }
52 54
53 void TestAutofillClient::ConfirmSaveCreditCardLocally( 55 void TestAutofillClient::ConfirmSaveCreditCardLocally(
54 const base::Closure& callback) {} 56 const CreditCard& card,
57 const base::Closure& callback) {
58 }
55 59
56 void TestAutofillClient::ConfirmSaveCreditCardToCloud( 60 void TestAutofillClient::ConfirmSaveCreditCardToCloud(
57 const base::Closure& callback, 61 const CreditCard& card,
58 scoped_ptr<base::DictionaryValue> legal_message) { 62 scoped_ptr<base::DictionaryValue> legal_message,
63 const base::Closure& callback) {
59 callback.Run(); 64 callback.Run();
60 } 65 }
61 66
62 void TestAutofillClient::LoadRiskData( 67 void TestAutofillClient::LoadRiskData(
63 const base::Callback<void(const std::string&)>& callback) { 68 const base::Callback<void(const std::string&)>& callback) {
64 callback.Run("some risk data"); 69 callback.Run("some risk data");
65 } 70 }
66 71
67 bool TestAutofillClient::HasCreditCardScanFeature() { 72 bool TestAutofillClient::HasCreditCardScanFeature() {
68 return false; 73 return false;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const base::string16& autofilled_value, 111 const base::string16& autofilled_value,
107 const base::string16& profile_full_name) { 112 const base::string16& profile_full_name) {
108 } 113 }
109 114
110 void TestAutofillClient::OnFirstUserGestureObserved() { 115 void TestAutofillClient::OnFirstUserGestureObserved() {
111 } 116 }
112 117
113 bool TestAutofillClient::IsContextSecure(const GURL& form_origin) { 118 bool TestAutofillClient::IsContextSecure(const GURL& form_origin) {
114 return is_context_secure_; 119 return is_context_secure_;
115 } 120 }
121
116 } // namespace autofill 122 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698