Index: webkit/tools/test_shell/test_shell_gtk.cc |
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc |
index 86ce5d616592a9ad7b31588d838e293566a5b4a3..10a00b14ecd1fc7af65e5f2d10a79863b7f629b4 100644 |
--- a/webkit/tools/test_shell/test_shell_gtk.cc |
+++ b/webkit/tools/test_shell/test_shell_gtk.cc |
@@ -629,8 +629,8 @@ std::string TestShell::RewriteLocalUrl(const std::string& url) { |
std::string new_url(url); |
if (url.compare(0, kPrefixLen, kPrefix, kPrefixLen) == 0) { |
FilePath replace_path; |
- PathService::Get(base::DIR_EXE, &replace_path); |
- replace_path = replace_path.DirName().DirName().Append( |
+ PathService::Get(base::DIR_SOURCE_ROOT, &replace_path); |
+ replace_path = replace_path.Append( |
"webkit/data/layout_tests/LayoutTests/"); |
new_url = std::string("file://") + replace_path.value() + |
url.substr(kPrefixLen); |