diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-27 00:02:26 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-27 00:02:26 +0000 |
commit | ca370a589bf573e24e97bb4032e6d04d055c1b92 (patch) | |
tree | baf069522ba4abbfb91c3dd4553345077b7d9963 /webkit/tools/test_shell/test_shell.cc | |
parent | 78346405241cb4b27d7a031de538b285ff89c65f (diff) | |
download | chromium_src-ca370a589bf573e24e97bb4032e6d04d055c1b92.zip chromium_src-ca370a589bf573e24e97bb4032e6d04d055c1b92.tar.gz chromium_src-ca370a589bf573e24e97bb4032e6d04d055c1b92.tar.bz2 |
Uses FilePath instead of std::wstring in webkit_glue::GetApplicationDirectory.
Patch by tfarina.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/173304
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24565 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rw-r--r-- | webkit/tools/test_shell/test_shell.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index fa6c46e..89980fe 100644 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -621,12 +621,8 @@ void AppendToLog(const char* file, int line, const char* msg) { logging::LogMessage(file, line).stream() << msg; } -bool GetApplicationDirectory(std::wstring *path) { - bool r; - FilePath fp; - r = PathService::Get(base::DIR_EXE, &fp); - *path = fp.ToWStringHack(); - return r; +bool GetApplicationDirectory(FilePath* path) { + return PathService::Get(base::DIR_EXE, path); } GURL GetInspectorURL() { @@ -637,7 +633,7 @@ std::string GetUIResourceProtocol() { return "test-shell-resource"; } -bool GetExeDirectory(std::wstring *path) { +bool GetExeDirectory(FilePath* path) { return GetApplicationDirectory(path); } |