| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/password_manager/password_store_factory.h" | 21 #include "chrome/browser/password_manager/password_store_factory.h" |
| 22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 23 #include "chrome/browser/signin/signin_manager_factory.h" | 23 #include "chrome/browser/signin/signin_manager_factory.h" |
| 24 #include "chrome/browser/sync/profile_sync_service_factory.h" | 24 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 25 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 25 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
| 26 #include "chrome/browser/ui/passwords/password_ui_view.h" | 26 #include "chrome/browser/ui/passwords/password_ui_view.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
| 29 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
| 30 #include "components/autofill/core/common/password_form.h" | 30 #include "components/autofill/core/common/password_form.h" |
| 31 #include "components/browser_sync/browser/profile_sync_service.h" | 31 #include "components/browser_sync/profile_sync_service.h" |
| 32 #include "components/password_manager/core/browser/affiliation_utils.h" | 32 #include "components/password_manager/core/browser/affiliation_utils.h" |
| 33 #include "components/password_manager/core/browser/import/password_importer.h" | 33 #include "components/password_manager/core/browser/import/password_importer.h" |
| 34 #include "components/password_manager/core/browser/password_ui_utils.h" | 34 #include "components/password_manager/core/browser/password_ui_utils.h" |
| 35 #include "components/password_manager/core/common/password_manager_pref_names.h" | 35 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 36 #include "components/password_manager/sync/browser/password_sync_util.h" | 36 #include "components/password_manager/sync/browser/password_sync_util.h" |
| 37 #include "components/prefs/pref_service.h" | 37 #include "components/prefs/pref_service.h" |
| 38 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
| 39 #include "content/public/browser/user_metrics.h" | 39 #include "content/public/browser/user_metrics.h" |
| 40 #include "content/public/browser/web_contents.h" | 40 #include "content/public/browser/web_contents.h" |
| 41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 void PasswordManagerPresenter::PasswordExceptionListPopulater:: | 386 void PasswordManagerPresenter::PasswordExceptionListPopulater:: |
| 387 OnGetPasswordStoreResults( | 387 OnGetPasswordStoreResults( |
| 388 std::vector<std::unique_ptr<autofill::PasswordForm>> results) { | 388 std::vector<std::unique_ptr<autofill::PasswordForm>> results) { |
| 389 page_->password_exception_list_ = std::move(results); | 389 page_->password_exception_list_ = std::move(results); |
| 390 page_->SortEntriesAndHideDuplicates(&page_->password_exception_list_, | 390 page_->SortEntriesAndHideDuplicates(&page_->password_exception_list_, |
| 391 &page_->password_exception_duplicates_, | 391 &page_->password_exception_duplicates_, |
| 392 PasswordEntryType::BLACKLISTED); | 392 PasswordEntryType::BLACKLISTED); |
| 393 page_->SetPasswordExceptionList(); | 393 page_->SetPasswordExceptionList(); |
| 394 } | 394 } |
| OLD | NEW |