OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/password_manager/native_backend_libsecret.h" | 5 #include "chrome/browser/password_manager/native_backend_libsecret.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <libsecret/secret.h> | 10 #include <libsecret/secret.h> |
11 | 11 |
12 #include <limits> | 12 #include <limits> |
13 #include <list> | 13 #include <list> |
14 #include <memory> | 14 #include <memory> |
15 #include <utility> | 15 #include <utility> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram_macros.h" |
20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
23 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | 23 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" |
24 #include "components/password_manager/core/browser/password_manager_util.h" | 24 #include "components/password_manager/core/browser/password_manager_util.h" |
25 #include "url/origin.h" | 25 #include "url/origin.h" |
26 | 26 |
27 using autofill::PasswordForm; | 27 using autofill::PasswordForm; |
28 using base::UTF8ToUTF16; | 28 using base::UTF8ToUTF16; |
29 using base::UTF16ToUTF8; | 29 using base::UTF16ToUTF8; |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 if (lookup_form) { | 558 if (lookup_form) { |
559 UMA_HISTOGRAM_ENUMERATION("PasswordManager.PslDomainMatchTriggering", | 559 UMA_HISTOGRAM_ENUMERATION("PasswordManager.PslDomainMatchTriggering", |
560 allow_psl_match | 560 allow_psl_match |
561 ? psl_domain_match_metric | 561 ? psl_domain_match_metric |
562 : password_manager::PSL_DOMAIN_MATCH_NOT_USED, | 562 : password_manager::PSL_DOMAIN_MATCH_NOT_USED, |
563 password_manager::PSL_DOMAIN_MATCH_COUNT); | 563 password_manager::PSL_DOMAIN_MATCH_COUNT); |
564 } | 564 } |
565 g_list_free(found); | 565 g_list_free(found); |
566 return forms; | 566 return forms; |
567 } | 567 } |
OLD | NEW |