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

Unified Diff: chrome/installer/util/create_dir_work_item.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: chrome/installer/util/create_dir_work_item.cc
diff --git a/chrome/installer/util/create_dir_work_item.cc b/chrome/installer/util/create_dir_work_item.cc
index a21d3eb0d856231ef5a53157ba112c741c181e9c..2e1ffa3c2dfaa6db0e0fc35acd956c012c033607 100644
--- a/chrome/installer/util/create_dir_work_item.cc
+++ b/chrome/installer/util/create_dir_work_item.cc
@@ -16,7 +16,7 @@ CreateDirWorkItem::CreateDirWorkItem(const base::FilePath& path)
}
void CreateDirWorkItem::GetTopDirToCreate() {
- if (file_util::PathExists(path_)) {
+ if (base::PathExists(path_)) {
top_path_ = base::FilePath();
return;
}
@@ -25,7 +25,7 @@ void CreateDirWorkItem::GetTopDirToCreate() {
do {
top_path_ = parent_dir;
parent_dir = parent_dir.DirName();
- } while ((parent_dir != top_path_) && !file_util::PathExists(parent_dir));
+ } while ((parent_dir != top_path_) && !base::PathExists(parent_dir));
return;
}
@@ -56,7 +56,7 @@ void CreateDirWorkItem::Rollback() {
base::FilePath path_to_delete(path_);
while (1) {
- if (file_util::PathExists(path_to_delete)) {
+ if (base::PathExists(path_to_delete)) {
if (!RemoveDirectory(path_to_delete.value().c_str()))
break;
}
« no previous file with comments | « chrome/installer/util/copy_tree_work_item_unittest.cc ('k') | chrome/installer/util/create_dir_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698