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

Unified Diff: gpu/config/gpu_info_collector_mac.mm

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: gpu/config/gpu_info_collector_mac.mm
diff --git a/gpu/config/gpu_info_collector_mac.mm b/gpu/config/gpu_info_collector_mac.mm
index c47a244da105be8ef7802b9c76c310ab45c37a58..1f7fad1ad20a5eb2173bbfefc0bd43158fe08480 100644
--- a/gpu/config/gpu_info_collector_mac.mm
+++ b/gpu/config/gpu_info_collector_mac.mm
@@ -35,13 +35,13 @@ const UInt32 kVendorIDAMD = 0x1002;
// Return 0 if we couldn't find the property.
// The property values we use should not be 0, so it's OK to use 0 as failure.
UInt32 GetEntryProperty(io_registry_entry_t entry, CFStringRef property_name) {
- base::mac::ScopedCFTypeRef<CFDataRef> data_ref(static_cast<CFDataRef>(
- IORegistryEntrySearchCFProperty(entry,
- kIOServicePlane,
- property_name,
- kCFAllocatorDefault,
- kIORegistryIterateRecursively |
- kIORegistryIterateParents)));
+ base::ScopedCFTypeRef<CFDataRef> data_ref(
+ static_cast<CFDataRef>(IORegistryEntrySearchCFProperty(
+ entry,
+ kIOServicePlane,
+ property_name,
+ kCFAllocatorDefault,
+ kIORegistryIterateRecursively | kIORegistryIterateParents)));
if (!data_ref)
return 0;

Powered by Google App Engine
This is Rietveld 408576698