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

Side by Side Diff: base/base_paths_mac.mm

Issue 10700136: Prettify output from chrome.fileSystem.getDisplayPath for POSIX profile directories (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Includes specific fix for Mac OS X, which was excluded from the posix code specifically Created 8 years, 5 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 unified diff | Download patch
« no previous file with comments | « base/base_paths.h ('k') | base/base_paths_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/base_paths_mac.h" 5 #include "base/base_paths_mac.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <mach-o/dyld.h> 9 #include <mach-o/dyld.h>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // src/xcodebuild/{Debug|Release}/Chromium.app/Contents/MacOS/Chromium 76 // src/xcodebuild/{Debug|Release}/Chromium.app/Contents/MacOS/Chromium
77 *result = result->DirName().DirName().DirName().DirName().DirName(); 77 *result = result->DirName().DirName().DirName().DirName().DirName();
78 } else { 78 } else {
79 // Unit tests execute two levels deep from the source root, eg: 79 // Unit tests execute two levels deep from the source root, eg:
80 // src/xcodebuild/{Debug|Release}/base_unittests 80 // src/xcodebuild/{Debug|Release}/base_unittests
81 *result = result->DirName().DirName(); 81 *result = result->DirName().DirName();
82 } 82 }
83 #endif 83 #endif
84 return true; 84 return true;
85 } 85 }
86 case base::DIR_HOME: {
87 *result = base::mac::NSStringToFilePath(NSHomeDirectory());
88 return true;
89 }
86 default: 90 default:
87 return false; 91 return false;
88 } 92 }
89 } 93 }
90 94
91 } // namespace base 95 } // namespace base
OLDNEW
« no previous file with comments | « base/base_paths.h ('k') | base/base_paths_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698