diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 20:51:16 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 20:51:16 +0000 |
commit | 6b1c0e1a406ff96035b07d9fb844b405f0d64f4d (patch) | |
tree | 6b7c0bbca802ac16bc12497c7b21bee32e954291 /base | |
parent | 66791e38d624490ad5b13f4a62318ca4ea51be01 (diff) | |
download | chromium_src-6b1c0e1a406ff96035b07d9fb844b405f0d64f4d.zip chromium_src-6b1c0e1a406ff96035b07d9fb844b405f0d64f4d.tar.gz chromium_src-6b1c0e1a406ff96035b07d9fb844b405f0d64f4d.tar.bz2 |
Convert some helper tools to use FilePaths for file names.
Add a "PRFilePath" macro to file_path.h for use in printf'ing
a FilePath.
These are some of the last users of deprecated file_util functions
(e.g. OpenFile(wstring, ...)).
BUG=24672
Review URL: http://codereview.chromium.org/2929002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_path.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/file_path.h b/base/file_path.h index 0efe1a1..46a3060 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -355,11 +355,14 @@ class FilePath { StringType path_; }; -// Macros for string literal initialization of FilePath::CharType[]. +// Macros for string literal initialization of FilePath::CharType[], and for +// using a FilePath::CharType[] in a printf-style format string. #if defined(OS_POSIX) #define FILE_PATH_LITERAL(x) x +#define PRFilePath "s" #elif defined(OS_WIN) #define FILE_PATH_LITERAL(x) L ## x +#define PRFilePath "ls" #endif // OS_WIN // Provide a hash function so that hash_sets and maps can contain FilePath |