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

Unified Diff: base/path_service.h

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove PathServiceWrapper and add DefaultDownloadDirectory Created 9 years, 6 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 | « no previous file | base/path_service.cc » ('j') | chrome/browser/download/download_browsertest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/path_service.h
diff --git a/base/path_service.h b/base/path_service.h
index 284fbf7e9536950c4952ff95603530809ca690b7..2f295856da3c8af8d83b734726529c92b8b36ae5 100644
--- a/base/path_service.h
+++ b/base/path_service.h
@@ -20,14 +20,18 @@ class FilePath;
class BASE_API PathService {
public:
// Retrieves a path to a special directory or file and places it into the
- // string pointed to by 'path'. If you ask for a directory it is guaranteed
+ // string pointed to by |path|. If you ask for a directory it is guaranteed
// to NOT have a path separator at the end. For example, "c:\windows\temp"
// Directories are also guaranteed to exist when this function succeeds.
//
// Returns true if the directory or file was successfully retrieved. On
- // failure, 'path' will not be changed.
+ // failure, |path| will not be changed.
static bool Get(int key, FilePath* path);
+ // Sets a path to a special directory or file. This overwrites the current
+ // path of the special directory or file. |path| may be a non-existent path.
+ static void Set(int key, const FilePath& path);
Paweł Hajdan Jr. 2011/06/08 09:50:23 Please remove all modifications to base/
haraken1 2011/06/09 10:16:56 Done.
+
// Overrides the path to a special directory or file. This cannot be used to
// change the value of DIR_CURRENT, but that should be obvious. Also, if the
// path specifies a directory that does not exist, the directory will be
« no previous file with comments | « no previous file | base/path_service.cc » ('j') | chrome/browser/download/download_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698