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

Unified Diff: base/file_path.h

Issue 2929002: Convert some tools to use FilePaths for file names. (Closed)
Patch Set: ok Created 10 years, 5 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 | chrome/tools/convert_dict/aff_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_path.h
diff --git a/base/file_path.h b/base/file_path.h
index 0efe1a14407bc63e655415ae916f635ed0d2e589..46a30609508869b036419519219bd2449a6b329d 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
« no previous file with comments | « no previous file | chrome/tools/convert_dict/aff_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698