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/login_database.h" | 5 #include "components/password_manager/core/browser/login_database.h" |
6 | 6 |
7 #import <Security/Security.h> | 7 #import <Security/Security.h> |
| 8 #include <stddef.h> |
8 | 9 |
9 #include "base/base64.h" | 10 #include "base/base64.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/mac/mac_logging.h" | 12 #include "base/mac/mac_logging.h" |
12 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/metrics/sparse_histogram.h" | 15 #include "base/metrics/sparse_histogram.h" |
15 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
17 | 18 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // We are using the account attribute to store item references. | 126 // We are using the account attribute to store item references. |
126 CFDictionarySetValue(query, kSecAttrAccount, item_ref); | 127 CFDictionarySetValue(query, kSecAttrAccount, item_ref); |
127 | 128 |
128 OSStatus status = SecItemDelete(query); | 129 OSStatus status = SecItemDelete(query); |
129 if (status != errSecSuccess && status != errSecItemNotFound) { | 130 if (status != errSecSuccess && status != errSecItemNotFound) { |
130 NOTREACHED() << "Unable to remove password from keychain: " << status; | 131 NOTREACHED() << "Unable to remove password from keychain: " << status; |
131 } | 132 } |
132 } | 133 } |
133 | 134 |
134 } // namespace password_manager | 135 } // namespace password_manager |
OLD | NEW |