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

Unified Diff: chrome/installer/util/move_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
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/installer/util/move_tree_work_item_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/move_tree_work_item.cc
diff --git a/chrome/installer/util/move_tree_work_item.cc b/chrome/installer/util/move_tree_work_item.cc
index ccbbf64a86954798249a25e2452e6a4cd0d09229..a1b7b031fcc9be6eb19d4448ebe9ebcaa8d9f848 100644
--- a/chrome/installer/util/move_tree_work_item.cc
+++ b/chrome/installer/util/move_tree_work_item.cc
@@ -28,7 +28,7 @@ MoveTreeWorkItem::MoveTreeWorkItem(const base::FilePath& source_path,
}
bool MoveTreeWorkItem::Do() {
- if (!file_util::PathExists(source_path_)) {
+ if (!base::PathExists(source_path_)) {
LOG(ERROR) << source_path_.value() << " does not exist";
return false;
}
@@ -41,7 +41,7 @@ bool MoveTreeWorkItem::Do() {
// 2) If the contents of src_path_ are NOT fully contained in dest_path_, we
// attempt to backup dest_path_ and replace it with src_path_. This will
// fail if files in dest_path_ are in use.
- if (file_util::PathExists(dest_path_)) {
+ if (base::PathExists(dest_path_)) {
// Generate a backup path that can keep the original files under dest_path_.
if (!backup_path_.CreateUniqueTempDirUnderPath(temp_dir_)) {
PLOG(ERROR) << "Failed to get backup path in folder "
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/installer/util/move_tree_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698