| 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/password_manager/core/browser/test_password_store.h" | 5 #include "components/password_manager/core/browser/test_password_store.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 it = forms.erase(it); | 75 it = forms.erase(it); |
| 76 changes.push_back(PasswordStoreChange(PasswordStoreChange::REMOVE, form)); | 76 changes.push_back(PasswordStoreChange(PasswordStoreChange::REMOVE, form)); |
| 77 } else { | 77 } else { |
| 78 ++it; | 78 ++it; |
| 79 } | 79 } |
| 80 } | 80 } |
| 81 return changes; | 81 return changes; |
| 82 } | 82 } |
| 83 | 83 |
| 84 ScopedVector<autofill::PasswordForm> TestPasswordStore::FillMatchingLogins( | 84 ScopedVector<autofill::PasswordForm> TestPasswordStore::FillMatchingLogins( |
| 85 const autofill::PasswordForm& form, | 85 const autofill::PasswordForm& form) { |
| 86 PasswordStore::AuthorizationPromptPolicy prompt_policy) { | |
| 87 ScopedVector<autofill::PasswordForm> matched_forms; | 86 ScopedVector<autofill::PasswordForm> matched_forms; |
| 88 std::vector<autofill::PasswordForm> forms = | 87 std::vector<autofill::PasswordForm> forms = |
| 89 stored_passwords_[form.signon_realm]; | 88 stored_passwords_[form.signon_realm]; |
| 90 for (const auto& stored_form : forms) { | 89 for (const auto& stored_form : forms) { |
| 91 matched_forms.push_back(new autofill::PasswordForm(stored_form)); | 90 matched_forms.push_back(new autofill::PasswordForm(stored_form)); |
| 92 } | 91 } |
| 93 return matched_forms; | 92 return matched_forms; |
| 94 } | 93 } |
| 95 | 94 |
| 96 void TestPasswordStore::ReportMetricsImpl(const std::string& sync_username, | 95 void TestPasswordStore::ReportMetricsImpl(const std::string& sync_username, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 140 |
| 142 void TestPasswordStore::RemoveSiteStatsImpl(const GURL& origin_domain) { | 141 void TestPasswordStore::RemoveSiteStatsImpl(const GURL& origin_domain) { |
| 143 } | 142 } |
| 144 | 143 |
| 145 std::vector<scoped_ptr<InteractionsStats>> TestPasswordStore::GetSiteStatsImpl( | 144 std::vector<scoped_ptr<InteractionsStats>> TestPasswordStore::GetSiteStatsImpl( |
| 146 const GURL& origin_domain) { | 145 const GURL& origin_domain) { |
| 147 return std::vector<scoped_ptr<InteractionsStats>>(); | 146 return std::vector<scoped_ptr<InteractionsStats>>(); |
| 148 } | 147 } |
| 149 | 148 |
| 150 } // namespace password_manager | 149 } // namespace password_manager |
| OLD | NEW |