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

Unified Diff: base/file_path.h

Issue 174053: Set OS X cache directory to ~/Library/Caches/[app name]/[profile name] (Closed)
Patch Set: Addressed Mark's comments 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
Index: base/file_path.h
diff --git a/base/file_path.h b/base/file_path.h
index b6086514f284f44ae6f493678bb5cb3ef72f34c4..6b5910e065f83255ca28b3bdef24e0a5c4fb9d4a 100644
--- a/base/file_path.h
+++ b/base/file_path.h
@@ -151,6 +151,16 @@ class FilePath {
// parent.
bool IsParent(const FilePath& child) const;
+ // If IsParent(child) holds, appends to path (if non-NULL) the
+ // relative path to child and returns true. For example, if parent
+ // holds "/Users/johndoe/Application Support", child holds
Mark Mentovai 2009/09/16 18:33:41 Might be nice to put Library in here to make it mo
+ // "/Users/johndoe/Application Support/Google/Chrome/Default", and
+ // *path holds "/Users/johndoe/Caches", then after
+ // parent.AppendRelativePath(child, path) is called *path will hold
+ // "/Users/johndoe/Caches/Google/Chrome/Default". Otherwise,
+ // returns false.
+ bool AppendRelativePath(const FilePath& child, FilePath* path) const;
+
// Returns a FilePath corresponding to the directory containing the path
// named by this object, stripping away the file component. If this object
// only contains one component, returns a FilePath identifying

Powered by Google App Engine
This is Rietveld 408576698