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

Unified Diff: base/mac/mac_util.mm

Issue 2411643003: Remove deprecated methods PathFromFSRef and FSRefFromPath. (Closed)
Patch Set: Comments from thakis. Created 4 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 | « base/mac/mac_util.h ('k') | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index 2f54b2799b5b01932b94fce98a63e5145ebae94b..930a280ee3cb08fb491bfa64e45371bd3abcca1a 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -122,19 +122,6 @@ bool IsHiddenLoginItem(LSSharedFileListItemRef item) {
} // namespace
-std::string PathFromFSRef(const FSRef& ref) {
- ScopedCFTypeRef<CFURLRef> url(
- CFURLCreateFromFSRef(kCFAllocatorDefault, &ref));
- NSString *path_string = [(NSURL *)url.get() path];
- return [path_string fileSystemRepresentation];
-}
-
-bool FSRefFromPath(const std::string& path, FSRef* ref) {
- OSStatus status = FSPathMakeRef((const UInt8*)path.c_str(),
- ref, nil);
- return status == noErr;
-}
-
CGColorSpaceRef GetGenericRGBColorSpace() {
// Leaked. That's OK, it's scoped to the lifetime of the application.
static CGColorSpaceRef g_color_space_generic_rgb(
« no previous file with comments | « base/mac/mac_util.h ('k') | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698