| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/password_form_manager.h" | 5 #include "components/password_manager/core/browser/password_form_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <map> | 10 #include <map> |
| 9 #include <set> | 11 #include <set> |
| 10 #include <utility> | 12 #include <utility> |
| 11 | 13 |
| 12 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "build/build_config.h" |
| 15 #include "components/autofill/core/browser/autofill_manager.h" | 18 #include "components/autofill/core/browser/autofill_manager.h" |
| 16 #include "components/autofill/core/browser/form_structure.h" | 19 #include "components/autofill/core/browser/form_structure.h" |
| 17 #include "components/autofill/core/browser/validation.h" | 20 #include "components/autofill/core/browser/validation.h" |
| 18 #include "components/autofill/core/common/password_form.h" | 21 #include "components/autofill/core/common/password_form.h" |
| 19 #include "components/password_manager/core/browser/affiliation_utils.h" | 22 #include "components/password_manager/core/browser/affiliation_utils.h" |
| 20 #include "components/password_manager/core/browser/browser_save_password_progres
s_logger.h" | 23 #include "components/password_manager/core/browser/browser_save_password_progres
s_logger.h" |
| 21 #include "components/password_manager/core/browser/credentials_filter.h" | 24 #include "components/password_manager/core/browser/credentials_filter.h" |
| 22 #include "components/password_manager/core/browser/log_manager.h" | 25 #include "components/password_manager/core/browser/log_manager.h" |
| 23 #include "components/password_manager/core/browser/password_manager.h" | 26 #include "components/password_manager/core/browser/password_manager.h" |
| 24 #include "components/password_manager/core/browser/password_manager_client.h" | 27 #include "components/password_manager/core/browser/password_manager_client.h" |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 continue; | 1338 continue; |
| 1336 } | 1339 } |
| 1337 password_store->RemoveLogin(*credential_to_delete->second); | 1340 password_store->RemoveLogin(*credential_to_delete->second); |
| 1338 if (credential_to_delete->second.get() == preferred_match_) | 1341 if (credential_to_delete->second.get() == preferred_match_) |
| 1339 preferred_match_ = nullptr; | 1342 preferred_match_ = nullptr; |
| 1340 best_matches_.erase(credential_to_delete); | 1343 best_matches_.erase(credential_to_delete); |
| 1341 } | 1344 } |
| 1342 } | 1345 } |
| 1343 | 1346 |
| 1344 } // namespace password_manager | 1347 } // namespace password_manager |
| OLD | NEW |