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

Side by Side Diff: chrome/common/chrome_paths_mac.mm

Issue 7718021: Add external extensions json source in proper mac location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: p Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_paths_internal.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/chrome_paths_internal.h" 5 #include "chrome/common/chrome_paths_internal.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 *result = result->Append(ProductDirName()); 98 *result = result->Append(ProductDirName());
99 success = true; 99 success = true;
100 } 100 }
101 return success; 101 return success;
102 } 102 }
103 103
104 bool GetUserDocumentsDirectory(FilePath* result) { 104 bool GetUserDocumentsDirectory(FilePath* result) {
105 return base::mac::GetUserDirectory(NSDocumentDirectory, result); 105 return base::mac::GetUserDirectory(NSDocumentDirectory, result);
106 } 106 }
107 107
108 bool GetGlobalApplicationSupportDirectory(FilePath* result) {
109 return base::mac::GetLocalDirectory(NSApplicationSupportDirectory, result);
110 }
111
108 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result) { 112 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result) {
109 // If the profile directory is under ~/Library/Application Support, 113 // If the profile directory is under ~/Library/Application Support,
110 // use a suitable cache directory under ~/Library/Caches. For 114 // use a suitable cache directory under ~/Library/Caches. For
111 // example, a profile directory of ~/Library/Application 115 // example, a profile directory of ~/Library/Application
112 // Support/Google/Chrome/MyProfileName would use the cache directory 116 // Support/Google/Chrome/MyProfileName would use the cache directory
113 // ~/Library/Caches/Google/Chrome/MyProfileName. 117 // ~/Library/Caches/Google/Chrome/MyProfileName.
114 118
115 // Default value in cases where any of the following fails. 119 // Default value in cases where any of the following fails.
116 *result = profile_dir; 120 *result = profile_dir;
117 121
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 193 }
190 194
191 NSBundle* OuterAppBundle() { 195 NSBundle* OuterAppBundle() {
192 // Cache this. Foundation leaks it anyway, and this should be the only call 196 // Cache this. Foundation leaks it anyway, and this should be the only call
193 // to OuterAppBundleInternal(). 197 // to OuterAppBundleInternal().
194 static NSBundle* bundle = OuterAppBundleInternal(); 198 static NSBundle* bundle = OuterAppBundleInternal();
195 return bundle; 199 return bundle;
196 } 200 }
197 201
198 } // namespace chrome 202 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths_internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698