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

Unified Diff: webkit/browser/fileapi/native_file_util.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
Index: webkit/browser/fileapi/native_file_util.cc
diff --git a/webkit/browser/fileapi/native_file_util.cc b/webkit/browser/fileapi/native_file_util.cc
index 7b12a62131809df0701a6007ce047921035f61fe..84b027bde0837909b37602630f0e6095fac4a053 100644
--- a/webkit/browser/fileapi/native_file_util.cc
+++ b/webkit/browser/fileapi/native_file_util.cc
@@ -126,10 +126,10 @@ PlatformFileError NativeFileUtil::CreateDirectory(
bool exclusive,
bool recursive) {
// If parent dir of file doesn't exist.
- if (!recursive && !file_util::PathExists(path.DirName()))
+ if (!recursive && !base::PathExists(path.DirName()))
return base::PLATFORM_FILE_ERROR_NOT_FOUND;
- bool path_exists = file_util::PathExists(path);
+ bool path_exists = base::PathExists(path);
if (exclusive && path_exists)
return base::PLATFORM_FILE_ERROR_EXISTS;
@@ -149,7 +149,7 @@ PlatformFileError NativeFileUtil::CreateDirectory(
PlatformFileError NativeFileUtil::GetFileInfo(
const base::FilePath& path,
base::PlatformFileInfo* file_info) {
- if (!file_util::PathExists(path))
+ if (!base::PathExists(path))
return base::PLATFORM_FILE_ERROR_NOT_FOUND;
if (!file_util::GetFileInfo(path, file_info))
return base::PLATFORM_FILE_ERROR_FAILED;
@@ -195,7 +195,7 @@ PlatformFileError NativeFileUtil::Truncate(
}
bool NativeFileUtil::PathExists(const base::FilePath& path) {
- return file_util::PathExists(path);
+ return base::PathExists(path);
}
bool NativeFileUtil::DirectoryExists(const base::FilePath& path) {
@@ -238,7 +238,7 @@ PlatformFileError NativeFileUtil::CopyOrMoveFile(
}
PlatformFileError NativeFileUtil::DeleteFile(const base::FilePath& path) {
- if (!file_util::PathExists(path))
+ if (!base::PathExists(path))
return base::PLATFORM_FILE_ERROR_NOT_FOUND;
if (file_util::DirectoryExists(path))
return base::PLATFORM_FILE_ERROR_NOT_A_FILE;
@@ -248,7 +248,7 @@ PlatformFileError NativeFileUtil::DeleteFile(const base::FilePath& path) {
}
PlatformFileError NativeFileUtil::DeleteDirectory(const base::FilePath& path) {
- if (!file_util::PathExists(path))
+ if (!base::PathExists(path))
return base::PLATFORM_FILE_ERROR_NOT_FOUND;
if (!file_util::DirectoryExists(path))
return base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY;
« no previous file with comments | « webkit/browser/fileapi/local_file_util_unittest.cc ('k') | webkit/browser/fileapi/native_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698