summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 03:23:56 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 03:23:56 +0000
commit594cd7d54eac55129bffd0c273675e643c6838b6 (patch)
treeb88b1e63e3ec185b8291e018d1ed773c4672ec9d /base
parentc82366ff60db9e8995bdf1c3d2f7598c0c81d38c (diff)
downloadchromium_src-594cd7d54eac55129bffd0c273675e643c6838b6.zip
chromium_src-594cd7d54eac55129bffd0c273675e643c6838b6.tar.gz
chromium_src-594cd7d54eac55129bffd0c273675e643c6838b6.tar.bz2
Rename the download to its final name only after the download is finished
BUG=27687, 28928 TEST=DownloadManagerTest.DownloadRenameTest Review URL: http://codereview.chromium.org/2877008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/file_path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/file_path.h b/base/file_path.h
index 6484c5a..6887cdc 100644
--- a/base/file_path.h
+++ b/base/file_path.h
@@ -357,9 +357,11 @@ class FilePath {
#if defined(OS_POSIX)
#define FILE_PATH_LITERAL(x) x
#define PRFilePath "s"
+#define PRFilePathLiteral "%s"
#elif defined(OS_WIN)
#define FILE_PATH_LITERAL(x) L ## x
#define PRFilePath "ls"
+#define PRFilePathLiteral L"%ls"
#endif // OS_WIN
// Provide a hash function so that hash_sets and maps can contain FilePath