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

Unified Diff: chrome/installer/util/shell_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
« no previous file with comments | « chrome/installer/util/self_cleaning_temp_dir.cc ('k') | chrome/installer/util/shell_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util.cc
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 4a196eafb5d3a66ce7b1a9cd376cf0d338eca7b4..c7da3e7f1231582c97486bb9605acdf21731396c 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -692,7 +692,7 @@ bool ElevateAndRegisterChrome(BrowserDistribution* dist,
base::FilePath exe_path =
base::FilePath::FromWStringHack(chrome_exe).DirName()
.Append(installer::kSetupExe);
- if (!file_util::PathExists(exe_path)) {
+ if (!base::PathExists(exe_path)) {
HKEY reg_root = InstallUtil::IsPerUserInstall(chrome_exe.c_str()) ?
HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE;
RegKey key(reg_root, dist->GetUninstallRegPath().c_str(), KEY_READ);
@@ -702,7 +702,7 @@ bool ElevateAndRegisterChrome(BrowserDistribution* dist,
exe_path = command_line.GetProgram();
}
- if (file_util::PathExists(exe_path)) {
+ if (base::PathExists(exe_path)) {
CommandLine cmd(exe_path);
cmd.AppendSwitchNative(installer::switches::kRegisterChromeBrowser,
chrome_exe);
@@ -1438,7 +1438,7 @@ bool ShellUtil::CreateOrUpdateShortcut(
// Install the system-level shortcut if requested.
chosen_path = &system_shortcut_path;
} else if (operation != SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL ||
- !file_util::PathExists(system_shortcut_path)) {
+ !base::PathExists(system_shortcut_path)) {
// Otherwise install the user-level shortcut, unless the system-level
// variant of this shortcut is present on the machine and |operation| states
// not to create a user-level shortcut in that case.
« no previous file with comments | « chrome/installer/util/self_cleaning_temp_dir.cc ('k') | chrome/installer/util/shell_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698