Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: net/test/python_utils.cc

Issue 21537002: Remove hard dependency on bundled python_26 in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glyphcache_20130604
Patch Set: Using Chromium Types and reusing code. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/test/python_utils.cc
diff --git a/net/test/python_utils.cc b/net/test/python_utils.cc
index 30c5f679a8adeed79b2d28d2232f4ad9478ff613..8c0585605551b98fe87f210cf0d747de80078884 100644
--- a/net/test/python_utils.cc
+++ b/net/test/python_utils.cc
@@ -107,15 +107,7 @@ bool GetPyProtoPath(base::FilePath* dir) {
bool GetPythonCommand(CommandLine* python_cmd) {
DCHECK(python_cmd);
base::FilePath dir;
-#if defined(OS_WIN)
- if (!PathService::Get(base::DIR_SOURCE_ROOT, &dir))
- return false;
- dir = dir.Append(FILE_PATH_LITERAL("third_party"))
- .Append(FILE_PATH_LITERAL("python_26"))
- .Append(FILE_PATH_LITERAL("python.exe"));
-#elif defined(OS_POSIX)
- dir = base::FilePath("python");
-#endif
+ dir = base::FilePath(FILE_PATH_LITERAL("python"));
python_cmd->SetProgram(dir);
Paweł Hajdan Jr. 2013/08/19 19:16:56 nit: If it fits, just put FILE_PATH_LITERAL("pytho

Powered by Google App Engine
This is Rietveld 408576698