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

Side by Side Diff: crypto/keychain_mac.cc

Issue 9699112: Move *keychain_mac* files to crypto/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 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/keychain_mac.h" 5 #include "crypto/keychain_mac.h"
6
7 namespace crypto {
6 8
7 OSStatus MacKeychain::ItemCopyAttributesAndData( 9 OSStatus MacKeychain::ItemCopyAttributesAndData(
8 SecKeychainItemRef itemRef, SecKeychainAttributeInfo *info, 10 SecKeychainItemRef itemRef, SecKeychainAttributeInfo *info,
9 SecItemClass *itemClass, SecKeychainAttributeList **attrList, 11 SecItemClass *itemClass, SecKeychainAttributeList **attrList,
10 UInt32 *length, void **outData) const { 12 UInt32 *length, void **outData) const {
11 return SecKeychainItemCopyAttributesAndData(itemRef, info, itemClass, 13 return SecKeychainItemCopyAttributesAndData(itemRef, info, itemClass,
12 attrList, length, outData); 14 attrList, length, outData);
13 } 15 }
14 16
15 OSStatus MacKeychain::ItemModifyAttributesAndData( 17 OSStatus MacKeychain::ItemModifyAttributesAndData(
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 serviceName, 99 serviceName,
98 accountNameLength, 100 accountNameLength,
99 accountName, 101 accountName,
100 passwordLength, 102 passwordLength,
101 passwordData, 103 passwordData,
102 itemRef); 104 itemRef);
103 } 105 }
104 106
105 void MacKeychain::Free(CFTypeRef ref) const { 107 void MacKeychain::Free(CFTypeRef ref) const {
106 if (ref) { 108 if (ref) {
107 CFRelease(ref); 109 CFRelease(ref);
Ryan Sleevi 2012/03/16 20:58:37 nit: no braces
akalin 2012/03/17 07:19:44 Done.
108 } 110 }
109 } 111 }
112
113 } // namespace crypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698