summaryrefslogtreecommitdiffstats
path: root/content/public/test/browser_test_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/test/browser_test_utils.cc')
-rw-r--r--content/public/test/browser_test_utils.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index ed0379d..f49ce92 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -514,9 +514,10 @@ bool TestWebSocketServer::Start(const FilePath& root_directory) {
CommandLine* TestWebSocketServer::CreatePythonCommandLine() {
// Note: Python's first argument must be the script; do not append CommandLine
// switches, as they would precede the script path and break this CommandLine.
- FilePath path;
- CHECK(GetPythonRunTime(&path));
- return new CommandLine(path);
+ CommandLine* cmd_line = new CommandLine(CommandLine::NO_PROGRAM);
+ // TODO(phajdan.jr): Instead of CHECKing, return a boolean indicating success.
+ CHECK(GetPythonCommand(cmd_line));
+ return cmd_line;
}
void TestWebSocketServer::SetPythonPath() {