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

Unified Diff: chrome/common/chrome_paths.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 | « chrome/common/chrome_content_client.cc ('k') | chrome/common/extensions/api/i18n/default_locale_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 9c20980fb5ff5d1cf1f90e75b1275ec7f7990f77..4375a13c7933dcbf44904363a9b06fe124e8065d 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -408,7 +408,7 @@ bool PathProvider(int key, base::FilePath* result) {
if (!PathService::Get(base::DIR_MODULE, &cur))
return false;
cur = cur.Append(FILE_PATH_LITERAL("test_data"));
- if (!file_util::PathExists(cur)) // We don't want to create this.
+ if (!base::PathExists(cur)) // We don't want to create this.
return false;
break;
case chrome::DIR_TEST_DATA:
@@ -417,7 +417,7 @@ bool PathProvider(int key, base::FilePath* result) {
cur = cur.Append(FILE_PATH_LITERAL("chrome"));
cur = cur.Append(FILE_PATH_LITERAL("test"));
cur = cur.Append(FILE_PATH_LITERAL("data"));
- if (!file_util::PathExists(cur)) // We don't want to create this.
+ if (!base::PathExists(cur)) // We don't want to create this.
return false;
break;
case chrome::DIR_TEST_TOOLS:
@@ -426,7 +426,7 @@ bool PathProvider(int key, base::FilePath* result) {
cur = cur.Append(FILE_PATH_LITERAL("chrome"));
cur = cur.Append(FILE_PATH_LITERAL("tools"));
cur = cur.Append(FILE_PATH_LITERAL("test"));
- if (!file_util::PathExists(cur)) // We don't want to create this
+ if (!base::PathExists(cur)) // We don't want to create this
return false;
break;
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
@@ -448,7 +448,7 @@ bool PathProvider(int key, base::FilePath* result) {
if (!login)
return false;
cur = cur.AppendASCII(login);
- if (!file_util::PathExists(cur)) // We don't want to create this.
+ if (!base::PathExists(cur)) // We don't want to create this.
return false;
break;
}
@@ -500,7 +500,7 @@ bool PathProvider(int key, base::FilePath* result) {
return false;
}
- if (create_dir && !file_util::PathExists(cur) &&
+ if (create_dir && !base::PathExists(cur) &&
!file_util::CreateDirectory(cur))
return false;
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/extensions/api/i18n/default_locale_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698