OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/passwords/password_manager_presenter.h" | 5 #include "chrome/browser/ui/passwords/password_manager_presenter.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 } | 229 } |
230 | 230 |
231 PasswordManagerPresenter::PasswordListPopulater::PasswordListPopulater( | 231 PasswordManagerPresenter::PasswordListPopulater::PasswordListPopulater( |
232 PasswordManagerPresenter* page) : ListPopulater(page) { | 232 PasswordManagerPresenter* page) : ListPopulater(page) { |
233 } | 233 } |
234 | 234 |
235 void PasswordManagerPresenter::PasswordListPopulater::Populate() { | 235 void PasswordManagerPresenter::PasswordListPopulater::Populate() { |
236 PasswordStore* store = page_->GetPasswordStore(); | 236 PasswordStore* store = page_->GetPasswordStore(); |
237 if (store != NULL) { | 237 if (store != NULL) { |
238 cancelable_task_tracker()->TryCancelAll(); | 238 cancelable_task_tracker()->TryCancelAll(); |
239 store->GetAutofillableLogins(this); | 239 store->GetAutofillableLoginsWithAffiliatedRealms(this); |
240 } else { | 240 } else { |
241 LOG(ERROR) << "No password store! Cannot display passwords."; | 241 LOG(ERROR) << "No password store! Cannot display passwords."; |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 void PasswordManagerPresenter::PasswordListPopulater::OnGetPasswordStoreResults( | 245 void PasswordManagerPresenter::PasswordListPopulater::OnGetPasswordStoreResults( |
246 ScopedVector<autofill::PasswordForm> results) { | 246 ScopedVector<autofill::PasswordForm> results) { |
247 page_->password_list_ = | 247 page_->password_list_ = |
248 password_manager_util::ConvertScopedVector(std::move(results)); | 248 password_manager_util::ConvertScopedVector(std::move(results)); |
249 page_->SetPasswordList(); | 249 page_->SetPasswordList(); |
(...skipping 13 matching lines...) Expand all Loading... |
263 LOG(ERROR) << "No password store! Cannot display exceptions."; | 263 LOG(ERROR) << "No password store! Cannot display exceptions."; |
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 void PasswordManagerPresenter::PasswordExceptionListPopulater:: | 267 void PasswordManagerPresenter::PasswordExceptionListPopulater:: |
268 OnGetPasswordStoreResults(ScopedVector<autofill::PasswordForm> results) { | 268 OnGetPasswordStoreResults(ScopedVector<autofill::PasswordForm> results) { |
269 page_->password_exception_list_ = | 269 page_->password_exception_list_ = |
270 password_manager_util::ConvertScopedVector(std::move(results)); | 270 password_manager_util::ConvertScopedVector(std::move(results)); |
271 page_->SetPasswordExceptionList(); | 271 page_->SetPasswordExceptionList(); |
272 } | 272 } |
OLD | NEW |