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

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

Issue 1136473006: Don't autofill credit cards on non-secure pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add period Created 5 years, 5 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 } 16 }
16 TestAutofillClient::~TestAutofillClient() { 17 TestAutofillClient::~TestAutofillClient() {
17 } 18 }
18 19
19 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() { 20 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() {
20 return nullptr; 21 return nullptr;
21 } 22 }
22 23
23 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() { 24 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() {
24 return scoped_refptr<AutofillWebDataService>(nullptr); 25 return scoped_refptr<AutofillWebDataService>(nullptr);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const base::string16& profile_full_name) { 98 const base::string16& profile_full_name) {
98 } 99 }
99 100
100 void TestAutofillClient::OnFirstUserGestureObserved() { 101 void TestAutofillClient::OnFirstUserGestureObserved() {
101 } 102 }
102 103
103 void TestAutofillClient::LinkClicked(const GURL& url, 104 void TestAutofillClient::LinkClicked(const GURL& url,
104 WindowOpenDisposition disposition) { 105 WindowOpenDisposition disposition) {
105 } 106 }
106 107
108 bool TestAutofillClient::IsContextSecure(const GURL& form_origin) {
109 return is_context_secure_;
110 }
107 } // namespace autofill 111 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/test_autofill_client.h ('k') | ios/chrome/browser/ui/autofill/autofill_client_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698