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

Unified Diff: chrome/browser/ui/cocoa/file_metadata.mm

Issue 6594096: Clean up CF To NS Casts and make them slightly safer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix space Created 9 years, 10 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 | « chrome/browser/importer/safari_importer.mm ('k') | ui/gfx/canvas_skia_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/file_metadata.mm
diff --git a/chrome/browser/ui/cocoa/file_metadata.mm b/chrome/browser/ui/cocoa/file_metadata.mm
index ca199a5937bd69b8eea27c22b190bb10138e097a..c069f09b6f43c16c36585244d1d26cba223b15da 100644
--- a/chrome/browser/ui/cocoa/file_metadata.mm
+++ b/chrome/browser/ui/cocoa/file_metadata.mm
@@ -70,7 +70,7 @@ void AddOriginMetadataToFile(const FilePath& file, const GURL& source,
return;
base::mac::ScopedCFTypeRef<MDItemRef> md_item(
- MDItemCreate(NULL, reinterpret_cast<CFStringRef>(file_path)));
+ MDItemCreate(NULL, base::mac::NSToCFCast(file_path)));
if (!md_item)
return;
@@ -88,7 +88,7 @@ void AddOriginMetadataToFile(const FilePath& file, const GURL& source,
[list addObject:referrer_url];
md_item_set_attribute_func(md_item, kMDItemWhereFroms,
- reinterpret_cast<CFArrayRef>(list));
+ base::mac::NSToCFCast(list));
}
// The OS will automatically quarantine files due to the
« no previous file with comments | « chrome/browser/importer/safari_importer.mm ('k') | ui/gfx/canvas_skia_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698