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

Unified Diff: webkit/support/webkit_support.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 | « webkit/glue/webfileutilities_impl.cc ('k') | webkit/support/weburl_loader_mock_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index d1c8be35e99b786273c1b3e18176d8f00b3297f7..bcf6571d18248c28ca6c0e1fbe65ef1bfec8575e 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -201,15 +201,15 @@ class WebPluginImplWithPageDelegate
base::FilePath GetWebKitRootDirFilePath() {
base::FilePath basePath;
PathService::Get(base::DIR_SOURCE_ROOT, &basePath);
- if (file_util::PathExists(
+ if (base::PathExists(
basePath.Append(FILE_PATH_LITERAL("third_party/WebKit")))) {
// We're in a WebKit-in-chrome checkout.
basePath = basePath.Append(FILE_PATH_LITERAL("third_party/WebKit"));
- } else if (file_util::PathExists(
+ } else if (base::PathExists(
basePath.Append(FILE_PATH_LITERAL("chromium")))) {
// We're in a WebKit-only checkout on Windows.
basePath = basePath.Append(FILE_PATH_LITERAL("../.."));
- } else if (file_util::PathExists(
+ } else if (base::PathExists(
basePath.Append(FILE_PATH_LITERAL("webkit/support")))) {
// We're in a WebKit-only/xcodebuild checkout on Mac
basePath = basePath.Append(FILE_PATH_LITERAL("../../.."));
@@ -246,7 +246,7 @@ namespace webkit_support {
base::FilePath GetChromiumRootDirFilePath() {
base::FilePath basePath;
PathService::Get(base::DIR_SOURCE_ROOT, &basePath);
- if (file_util::PathExists(
+ if (base::PathExists(
basePath.Append(FILE_PATH_LITERAL("third_party/WebKit")))) {
// We're in a WebKit-in-chrome checkout.
return basePath;
@@ -512,7 +512,7 @@ WebURL RewriteLayoutTestsURL(const std::string& utf8_url) {
// On Android, the file is actually accessed through file-over-http. Disable
// the following CHECK because the file is unlikely to exist on the device.
#if !defined(OS_ANDROID)
- CHECK(file_util::PathExists(replacePath)) << replacePath.value() <<
+ CHECK(base::PathExists(replacePath)) << replacePath.value() <<
" (re-written from " << utf8_url << ") does not exit";
#endif
« no previous file with comments | « webkit/glue/webfileutilities_impl.cc ('k') | webkit/support/weburl_loader_mock_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698