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

Unified Diff: chrome/browser/profiles/profile_shortcut_manager_win.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/browser/profiles/profile_shortcut_manager_win.cc
diff --git a/chrome/browser/profiles/profile_shortcut_manager_win.cc b/chrome/browser/profiles/profile_shortcut_manager_win.cc
index 296fb28f5225a0912b25127cb555c58de464a277..b0a0937171327c94b59ed8a0199d69c5a207c8d2 100644
--- a/chrome/browser/profiles/profile_shortcut_manager_win.cc
+++ b/chrome/browser/profiles/profile_shortcut_manager_win.cc
@@ -286,12 +286,12 @@ void RenameChromeDesktopShortcutForProfile(
const base::FilePath new_shortcut_path =
user_shortcuts_directory.Append(new_shortcut_filename);
- if (file_util::PathExists(old_shortcut_path)) {
+ if (base::PathExists(old_shortcut_path)) {
// Rename the old shortcut unless a system-level shortcut exists at the
// destination, in which case the old shortcut is simply deleted.
const base::FilePath possible_new_system_shortcut =
system_shortcuts_directory.Append(new_shortcut_filename);
- if (file_util::PathExists(possible_new_system_shortcut))
+ if (base::PathExists(possible_new_system_shortcut))
base::Delete(old_shortcut_path, false);
else if (!RenameDesktopShortcut(old_shortcut_path, new_shortcut_path))
DLOG(ERROR) << "Could not rename Windows profile desktop shortcut.";
@@ -304,7 +304,7 @@ void RenameChromeDesktopShortcutForProfile(
// properties updated by |CreateOrUpdateDesktopShortcutsForProfile()|.
const base::FilePath possible_old_system_shortcut =
system_shortcuts_directory.Append(old_shortcut_filename);
- if (file_util::PathExists(possible_old_system_shortcut))
+ if (base::PathExists(possible_old_system_shortcut))
base::CopyFile(possible_old_system_shortcut, new_shortcut_path);
}
}

Powered by Google App Engine
This is Rietveld 408576698