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

Unified Diff: chrome/installer/util/delete_tree_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/delete_tree_work_item.cc
diff --git a/chrome/installer/util/delete_tree_work_item.cc b/chrome/installer/util/delete_tree_work_item.cc
index 7c3265430bb3db4b870cb91915fba261fdf652cb..1bf69de3b6f9e56d4ff68ba84a0a806513230bc2 100644
--- a/chrome/installer/util/delete_tree_work_item.cc
+++ b/chrome/installer/util/delete_tree_work_item.cc
@@ -108,7 +108,7 @@ bool DeleteTreeWorkItem::Do() {
}
// Now that we've taken care of the key files, take care of the rest.
- if (!root_path_.empty() && file_util::PathExists(root_path_)) {
+ if (!root_path_.empty() && base::PathExists(root_path_)) {
if (!ignore_failure_) {
if (!backup_path_.CreateUniqueTempDirUnderPath(temp_path_)) {
PLOG(ERROR) << "Failed to get backup path in folder "
@@ -143,7 +143,7 @@ void DeleteTreeWorkItem::Rollback() {
if (copied_to_backup_) {
DCHECK(!backup_path_.path().empty());
base::FilePath backup = backup_path_.path().Append(root_path_.BaseName());
- if (file_util::PathExists(backup))
+ if (base::PathExists(backup))
base::Move(backup, root_path_);
}
@@ -153,7 +153,7 @@ void DeleteTreeWorkItem::Rollback() {
base::FilePath& key_file = key_paths_[i];
base::FilePath backup_file =
backup_dir.path().Append(key_file.BaseName());
- if (file_util::PathExists(backup_file) &&
+ if (base::PathExists(backup_file) &&
!base::Move(backup_file, key_file)) {
// This could happen if we could not delete the key file to begin with.
PLOG(WARNING) << "Rollback: Failed to move backup file back in place: "
« no previous file with comments | « chrome/installer/util/create_dir_work_item_unittest.cc ('k') | chrome/installer/util/delete_tree_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698