summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rw-r--r--webkit/tools/test_shell/test_shell.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index 62bacb2..6845a95 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;
}