Index: webkit/tools/test_shell/layout_test_controller.cc |
=================================================================== |
--- webkit/tools/test_shell/layout_test_controller.cc (revision 15017) |
+++ webkit/tools/test_shell/layout_test_controller.cc (working copy) |
@@ -9,7 +9,7 @@ |
#include "webkit/tools/test_shell/layout_test_controller.h" |
#include "base/basictypes.h" |
-#include "base/file_util.h" |
+#include "base/file_path.h" |
#include "base/logging.h" |
#include "base/message_loop.h" |
#include "base/path_service.h" |
@@ -596,10 +596,10 @@ |
std::string url = args[0].ToString(); |
if (StartsWithASCII(url, "/tmp/", true)) { |
// We want a temp file. |
- std::wstring path; |
+ FilePath path; |
PathService::Get(base::DIR_TEMP, &path); |
- file_util::AppendToPath(&path, UTF8ToWide(url.substr(5))); |
- result->Set(WideToUTF8(path)); |
+ path = path.AppendASCII(url.substr(5)); |
+ result->Set(WideToUTF8(path.ToWStringHack())); |
return; |
} |