Index: webkit/tools/test_shell/test_shell.cc |
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc |
index 62bacb2f296a3c6489807b2c9c379d6ce1e0458d..6845a957c260c5930b8398c9611016bb12db8bf9 100644 |
--- a/webkit/tools/test_shell/test_shell.cc |
+++ b/webkit/tools/test_shell/test_shell.cc |
@@ -773,8 +773,7 @@ bool IsDefaultPluginEnabled() { |
FilePath exe_path; |
if (PathService::Get(base::FILE_EXE, &exe_path)) { |
- std::wstring exe_name = file_util::GetFilenameFromPath( |
- exe_path.ToWStringHack()); |
+ std::wstring exe_name = exe_path.BaseName().ToWStringHack(); |
if (StartsWith(exe_name, L"test_shell_tests", false)) |
return true; |
} |