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

Unified Diff: content/shell/common/webkit_test_helpers.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_linux.cc ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/webkit_test_helpers.cc
diff --git a/content/shell/common/webkit_test_helpers.cc b/content/shell/common/webkit_test_helpers.cc
index 0426ac4aa435fee282f07a67d6b9462e878cea81..5dafad7f01d57946f4e321484d40d609b44f7e7b 100644
--- a/content/shell/common/webkit_test_helpers.cc
+++ b/content/shell/common/webkit_test_helpers.cc
@@ -114,15 +114,15 @@ void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs) {
base::FilePath GetWebKitRootDirFilePath() {
base::FilePath base_path;
PathService::Get(base::DIR_SOURCE_ROOT, &base_path);
- if (file_util::PathExists(
+ if (base::PathExists(
base_path.Append(FILE_PATH_LITERAL("third_party/WebKit")))) {
// We're in a WebKit-in-chrome checkout.
return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit"));
- } else if (file_util::PathExists(
+ } else if (base::PathExists(
base_path.Append(FILE_PATH_LITERAL("chromium")))) {
// We're in a WebKit-only checkout on Windows.
return base_path.Append(FILE_PATH_LITERAL("../.."));
- } else if (file_util::PathExists(
+ } else if (base::PathExists(
base_path.Append(FILE_PATH_LITERAL("webkit/support")))) {
// We're in a WebKit-only/xcodebuild checkout on Mac
return base_path.Append(FILE_PATH_LITERAL("../../.."));
@@ -134,7 +134,7 @@ base::FilePath GetWebKitRootDirFilePath() {
base::FilePath GetChromiumRootDirFilePath() {
base::FilePath webkit_path = GetWebKitRootDirFilePath();
- if (file_util::PathExists(webkit_path.Append(
+ if (base::PathExists(webkit_path.Append(
FILE_PATH_LITERAL("Source/WebKit/chromium/webkit/support")))) {
// We're in a WebKit-only checkout.
return webkit_path.Append(FILE_PATH_LITERAL("Source/WebKit/chromium"));
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_linux.cc ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698