Chromium Code Reviews| Index: webkit/tools/test_shell/test_shell_main.cc |
| diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc |
| index 37c26bcff0bc9475f051cc0025b688109ed816ca..e2eb9508f458407ee710a273abaf464811fc1cb2 100644 |
| --- a/webkit/tools/test_shell/test_shell_main.cc |
| +++ b/webkit/tools/test_shell/test_shell_main.cc |
| @@ -224,9 +224,10 @@ int main(int argc, char* argv[]) { |
| if (url.is_valid()) { |
| starting_url = url; |
| } else { |
| - // Treat as a file path |
| - starting_url = |
| - net::FilePathToFileURL(FilePath::FromWStringHack(loose_values[0])); |
| + // Treat as a relative file path. |
| + FilePath path = FilePath::FromWStringHack(loose_values[0]); |
| + file_util::AbsolutePath(&path); |
|
Elliot Glaysher
2010/04/29 19:54:39
Considering that you're doing this for convenience
|
| + starting_url = net::FilePathToFileURL(path); |
| } |
| } |