Index: base/file_util_win.cc |
diff --git a/base/file_util_win.cc b/base/file_util_win.cc |
index 86c5eea9678fe19d6abbeab22ee027c13eddd2c5..b500b45d532ec5b96d3149f4aac17c6a8b36b319 100644 |
--- a/base/file_util_win.cc |
+++ b/base/file_util_win.cc |
@@ -213,18 +213,8 @@ bool DirectoryExists(const FilePath& path) { |
return false; |
} |
-} // namespace base |
- |
-// ----------------------------------------------------------------------------- |
- |
-namespace file_util { |
- |
-using base::DirectoryExists; |
-using base::FilePath; |
-using base::kFileShareAll; |
- |
bool GetTempDir(FilePath* path) { |
- base::ThreadRestrictions::AssertIOAllowed(); |
+ ThreadRestrictions::AssertIOAllowed(); |
wchar_t temp_path[MAX_PATH + 1]; |
DWORD path_len = ::GetTempPath(MAX_PATH, temp_path); |
@@ -237,10 +227,20 @@ bool GetTempDir(FilePath* path) { |
return true; |
} |
-bool GetShmemTempDir(FilePath* path, bool executable) { |
+bool GetShmemTempDir(bool executable, FilePath* path) { |
return GetTempDir(path); |
} |
+} // namespace base |
+ |
+// ----------------------------------------------------------------------------- |
+ |
+namespace file_util { |
+ |
+using base::DirectoryExists; |
+using base::FilePath; |
+using base::kFileShareAll; |
+ |
bool CreateTemporaryFile(FilePath* path) { |
base::ThreadRestrictions::AssertIOAllowed(); |