Index: base/file_util_win.cc |
diff --git a/base/file_util_win.cc b/base/file_util_win.cc |
index e9f9defa8797be949e2854b05dac76fcafcd5b54..2dc39f34754334afd32e108a60a4c58075c13bdf 100644 |
--- a/base/file_util_win.cc |
+++ b/base/file_util_win.cc |
@@ -17,6 +17,7 @@ |
#include "base/file_path.h" |
#include "base/logging.h" |
#include "base/metrics/histogram.h" |
+#include "base/process_util.h" |
#include "base/string_number_conversions.h" |
#include "base/string_util.h" |
#include "base/threading/thread_restrictions.h" |
@@ -559,6 +560,8 @@ bool CreateTemporaryDirInDir(const FilePath& base_dir, |
// the one exists, keep trying another path name until we reach some limit. |
string16 new_dir_name; |
new_dir_name.assign(prefix); |
+ new_dir_name.append(base::IntToString16(::base::GetCurrentProcId())); |
+ new_dir_name.append(FILE_PATH_LITERAL("_")); |
brettw
2012/05/01 04:51:11
I'd do "new_dir_name.push_back('_');" which will w
Dirk Pranke
2012/05/01 19:01:23
Just goes to show how weak my c++ is :). Done.
|
new_dir_name.append(base::IntToString16(rand() % kint16max)); |
path_to_create = base_dir.Append(new_dir_name); |