summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_shell_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index 72864e2..87e80a5 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -612,8 +612,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);