Index: webkit/support/webkit_support.cc |
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc |
index ff3fd4025bc3e2afd2b9ef2d904fb2c0b2720094..b35885e34aa4ca59aab234aa68e7ca953cd1ae5a 100644 |
--- a/webkit/support/webkit_support.cc |
+++ b/webkit/support/webkit_support.cc |
@@ -221,15 +221,16 @@ class WebPluginImplWithPageDelegate |
FilePath GetWebKitRootDirFilePath() { |
FilePath basePath; |
PathService::Get(base::DIR_SOURCE_ROOT, &basePath); |
- if (file_util::PathExists(basePath.Append(FILE_PATH_LITERAL("chrome")))) { |
+ if (file_util::PathExists( |
+ basePath.Append(FILE_PATH_LITERAL("third_party/WebKit")))) { |
// We're in a WebKit-in-chrome checkout. |
return basePath.Append(FILE_PATH_LITERAL("third_party/WebKit")); |
} else if (file_util::PathExists( |
- basePath.Append(FILE_PATH_LITERAL("chromium")))) { |
+ basePath.Append(FILE_PATH_LITERAL("chromium")))) { |
// We're in a WebKit-only checkout on Windows. |
return basePath.Append(FILE_PATH_LITERAL("../..")); |
} else if (file_util::PathExists( |
- basePath.Append(FILE_PATH_LITERAL("webkit/support")))) { |
+ basePath.Append(FILE_PATH_LITERAL("webkit/support")))) { |
// We're in a WebKit-only/xcodebuild checkout on Mac |
return basePath.Append(FILE_PATH_LITERAL("../../..")); |
} |