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

Unified Diff: chrome/common/chrome_paths_mac.mm

Issue 204043: Set OS X cache directory to ~/Library/Caches/[app name]/[profile name] ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profile.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths_mac.mm
===================================================================
--- chrome/common/chrome_paths_mac.mm (revision 26368)
+++ chrome/common/chrome_paths_mac.mm (working copy)
@@ -14,19 +14,12 @@
bool GetDefaultUserDataDirectory(FilePath* result) {
bool success = false;
- NSArray* dirs =
- NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
- NSUserDomainMask, YES);
- if ([dirs count] && result) {
- NSString* base = [dirs objectAtIndex:0];
+ if (result && PathService::Get(base::DIR_APP_DATA, result)) {
#if defined(GOOGLE_CHROME_BUILD)
- base = [base stringByAppendingPathComponent:@"Google"];
- NSString* tail = @"Chrome";
+ *result = result->Append("Google").Append("Chrome");
#else
- NSString* tail = @"Chromium";
+ *result = result->Append("Chromium");
#endif
- NSString* path = [base stringByAppendingPathComponent:tail];
- *result = FilePath([path fileSystemRepresentation]);
success = true;
}
return success;
« no previous file with comments | « chrome/browser/profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698