OLD | NEW |
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 Loading... |
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 |
OLD | NEW |