OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/login_database.h" | 5 #include "components/password_manager/core/browser/login_database.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <limits> | 10 #include <limits> |
11 #include <map> | 11 #include <map> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ptr_util.h" |
18 #include "base/metrics/histogram_macros.h" | 19 #include "base/metrics/histogram_macros.h" |
19 #include "base/metrics/sparse_histogram.h" | 20 #include "base/metrics/sparse_histogram.h" |
20 #include "base/numerics/safe_conversions.h" | 21 #include "base/numerics/safe_conversions.h" |
21 #include "base/pickle.h" | 22 #include "base/pickle.h" |
22 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
23 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
24 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
25 #include "base/time/time.h" | 26 #include "base/time/time.h" |
26 #include "build/build_config.h" | 27 #include "build/build_config.h" |
27 #include "components/autofill/core/common/password_form.h" | 28 #include "components/autofill/core/common/password_form.h" |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 DCHECK(blacklisted_statement_.empty()); | 1296 DCHECK(blacklisted_statement_.empty()); |
1296 blacklisted_statement_ = | 1297 blacklisted_statement_ = |
1297 "SELECT " + all_column_names + | 1298 "SELECT " + all_column_names + |
1298 " FROM logins WHERE blacklisted_by_user == ? ORDER BY origin_url"; | 1299 " FROM logins WHERE blacklisted_by_user == ? ORDER BY origin_url"; |
1299 DCHECK(encrypted_statement_.empty()); | 1300 DCHECK(encrypted_statement_.empty()); |
1300 encrypted_statement_ = | 1301 encrypted_statement_ = |
1301 "SELECT password_value FROM logins WHERE " + all_unique_key_column_names; | 1302 "SELECT password_value FROM logins WHERE " + all_unique_key_column_names; |
1302 } | 1303 } |
1303 | 1304 |
1304 } // namespace password_manager | 1305 } // namespace password_manager |
OLD | NEW |