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 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/signin/signin_manager_factory.h" | 24 #include "chrome/browser/signin/signin_manager_factory.h" |
25 #include "chrome/browser/sync/profile_sync_service_factory.h" | 25 #include "chrome/browser/sync/profile_sync_service_factory.h" |
26 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 26 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
27 #include "chrome/browser/ui/passwords/password_ui_view.h" | 27 #include "chrome/browser/ui/passwords/password_ui_view.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
31 #include "components/autofill/core/common/password_form.h" | 31 #include "components/autofill/core/common/password_form.h" |
32 #include "components/browser_sync/profile_sync_service.h" | 32 #include "components/browser_sync/profile_sync_service.h" |
33 #include "components/password_manager/core/browser/android_affiliation/affiliati
on_utils.h" | 33 #include "components/password_manager/core/browser/affiliation_utils.h" |
34 #include "components/password_manager/core/browser/import/password_importer.h" | 34 #include "components/password_manager/core/browser/import/password_importer.h" |
35 #include "components/password_manager/core/browser/password_ui_utils.h" | 35 #include "components/password_manager/core/browser/password_ui_utils.h" |
36 #include "components/password_manager/core/common/password_manager_pref_names.h" | 36 #include "components/password_manager/core/common/password_manager_pref_names.h" |
37 #include "components/password_manager/sync/browser/password_sync_util.h" | 37 #include "components/password_manager/sync/browser/password_sync_util.h" |
38 #include "components/prefs/pref_service.h" | 38 #include "components/prefs/pref_service.h" |
39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.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" |
42 | 42 |
43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 | 397 |
398 void PasswordManagerPresenter::PasswordExceptionListPopulater:: | 398 void PasswordManagerPresenter::PasswordExceptionListPopulater:: |
399 OnGetPasswordStoreResults( | 399 OnGetPasswordStoreResults( |
400 std::vector<std::unique_ptr<autofill::PasswordForm>> results) { | 400 std::vector<std::unique_ptr<autofill::PasswordForm>> results) { |
401 page_->password_exception_list_ = std::move(results); | 401 page_->password_exception_list_ = std::move(results); |
402 page_->SortEntriesAndHideDuplicates(&page_->password_exception_list_, | 402 page_->SortEntriesAndHideDuplicates(&page_->password_exception_list_, |
403 &page_->password_exception_duplicates_, | 403 &page_->password_exception_duplicates_, |
404 PasswordEntryType::BLACKLISTED); | 404 PasswordEntryType::BLACKLISTED); |
405 page_->SetPasswordExceptionList(); | 405 page_->SetPasswordExceptionList(); |
406 } | 406 } |
OLD | NEW |