Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: components/password_manager/core/browser/login_database_ios.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698