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 "chrome/browser/password_manager/password_store_mac.h" | 5 #include "chrome/browser/password_manager/password_store_mac.h" |
6 #include "chrome/browser/password_manager/password_store_mac_internal.h" | 6 #include "chrome/browser/password_manager/password_store_mac_internal.h" |
7 | 7 |
8 #include <CoreServices/CoreServices.h> | 8 #include <CoreServices/CoreServices.h> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/mac/foundation_util.h" |
16 #include "base/mac/mac_logging.h" | 17 #include "base/mac/mac_logging.h" |
17 #include "base/mac/mac_util.h" | |
18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
21 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
23 #include "chrome/browser/mac/security_wrappers.h" | 23 #include "chrome/browser/mac/security_wrappers.h" |
24 #include "components/password_manager/core/browser/login_database.h" | 24 #include "components/password_manager/core/browser/login_database.h" |
25 #include "components/password_manager/core/browser/password_store_change.h" | 25 #include "components/password_manager/core/browser/password_store_change.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "crypto/apple_keychain.h" | 27 #include "crypto/apple_keychain.h" |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 | 1152 |
1153 ScopedVector<PasswordForm> merged_forms; | 1153 ScopedVector<PasswordForm> merged_forms; |
1154 merged_forms.get() = internal_keychain_helpers::GetPasswordsForForms( | 1154 merged_forms.get() = internal_keychain_helpers::GetPasswordsForForms( |
1155 *keychain_, &database_forms); | 1155 *keychain_, &database_forms); |
1156 | 1156 |
1157 // Clean up any orphaned database entries. | 1157 // Clean up any orphaned database entries. |
1158 RemoveDatabaseForms(database_forms); | 1158 RemoveDatabaseForms(database_forms); |
1159 | 1159 |
1160 forms->insert(forms->end(), database_forms.begin(), database_forms.end()); | 1160 forms->insert(forms->end(), database_forms.begin(), database_forms.end()); |
1161 } | 1161 } |
OLD | NEW |