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

Unified Diff: net/base/keygen_handler_mac.cc

Issue 3855001: Move scoped_cftyperef from base to base/mac, use the new namespace, and name ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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 | « net/base/cert_test_util.cc ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/keygen_handler_mac.cc
===================================================================
--- net/base/keygen_handler_mac.cc (revision 62861)
+++ net/base/keygen_handler_mac.cc (working copy)
@@ -12,7 +12,7 @@
#include "base/crypto/cssm_init.h"
#include "base/lock.h"
#include "base/logging.h"
-#include "base/scoped_cftyperef.h"
+#include "base/mac/scoped_cftyperef.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
@@ -111,7 +111,7 @@
if (url_.has_host()) {
// TODO(davidben): Use something like "Key generated for
// example.com", but localize it.
- scoped_cftyperef<CFStringRef> label(
+ base::mac::ScopedCFTypeRef<CFStringRef> label(
base::SysUTF8ToCFStringRef(url_.host()));
// Create an initial access object to set the SecAccessRef. This
// sets a label on the Keychain dialogs. Pass NULL as the second
@@ -137,7 +137,7 @@
base::LogCSSMError("SecKeychainItemExpor", err);
goto failure;
}
- scoped_cftyperef<CFDataRef> scoped_key_data(key_data);
+ base::mac::ScopedCFTypeRef<CFDataRef> scoped_key_data(key_data);
// Create an ASN.1 encoder.
err = SecAsn1CoderCreate(&coder);
@@ -232,7 +232,7 @@
base::LogCSSMError("SecKeychainCopyDefault", err);
return err;
}
- scoped_cftyperef<SecKeychainRef> scoped_keychain(keychain);
+ base::mac::ScopedCFTypeRef<SecKeychainRef> scoped_keychain(keychain);
{
AutoLock locked(base::GetMacSecurityServicesLock());
err = SecKeyCreatePair(
« no previous file with comments | « net/base/cert_test_util.cc ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698