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

Unified Diff: webkit/tools/test_shell/layout_test_controller.cc

Issue 99266: Deprecate wstring version of PathService::Get() in webkit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « webkit/tools/test_shell/image_decoder_unittest.cc ('k') | webkit/tools/test_shell/node_leak_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « webkit/tools/test_shell/image_decoder_unittest.cc ('k') | webkit/tools/test_shell/node_leak_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698