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

Unified Diff: crypto/apple_keychain_mac.mm

Issue 1813523002: Suppress -Wdeprecated-declarations warnings in apple_keychain_mac.mm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/apple_keychain_mac.mm
diff --git a/crypto/apple_keychain_mac.mm b/crypto/apple_keychain_mac.mm
index 240c32067bcf147858e21746affbe2883cd3d171..ff5fa3abb39ab0c7f49c961b2e98900e7fea616a 100644
--- a/crypto/apple_keychain_mac.mm
+++ b/crypto/apple_keychain_mac.mm
@@ -55,14 +55,24 @@ OSStatus AppleKeychain::SearchCreateFromAttributes(
const SecKeychainAttributeList* attrList,
SecKeychainSearchRef* searchRef) const {
base::AutoLock lock(GetMacSecurityServicesLock());
+// Eventually, this deprecated method should be removed entirely.
+// https://crbug.com/595468
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
return SecKeychainSearchCreateFromAttributes(keychainOrArray, itemClass,
attrList, searchRef);
+#pragma clang diagnostic pop
}
OSStatus AppleKeychain::SearchCopyNext(SecKeychainSearchRef searchRef,
SecKeychainItemRef* itemRef) const {
base::AutoLock lock(GetMacSecurityServicesLock());
+// Eventually, this deprecated method should be removed entirely.
+// https://crbug.com/595468
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
return SecKeychainSearchCopyNext(searchRef, itemRef);
+#pragma clang diagnostic pop
}
OSStatus AppleKeychain::AddInternetPassword(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698