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

Unified Diff: chrome/installer/launcher_support/chrome_launcher_support.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/common/mac/app_mode_chrome_locator_unittest.mm ('k') | chrome/installer/setup/install.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/launcher_support/chrome_launcher_support.cc
diff --git a/chrome/installer/launcher_support/chrome_launcher_support.cc b/chrome/installer/launcher_support/chrome_launcher_support.cc
index 181007dd063ea30fa6b820d78a723d020b97e264..09a65b3778f0542f9a78568a3a0c70272270fe63 100644
--- a/chrome/installer/launcher_support/chrome_launcher_support.cc
+++ b/chrome/installer/launcher_support/chrome_launcher_support.cc
@@ -50,7 +50,7 @@ base::FilePath GetDevelopmentExe(const wchar_t* exe_file) {
base::FilePath current_directory;
if (PathService::Get(base::DIR_EXE, &current_directory)) {
base::FilePath chrome_exe_path(current_directory.Append(exe_file));
- if (file_util::PathExists(chrome_exe_path))
+ if (base::PathExists(chrome_exe_path))
return chrome_exe_path;
}
return base::FilePath();
@@ -113,7 +113,7 @@ base::FilePath GetSetupExeFromRegistry(InstallationLevel level,
string16 uninstall;
if (GetClientStateValue(level, app_guid, kUninstallStringField, &uninstall)) {
base::FilePath setup_exe_path(uninstall);
- if (file_util::PathExists(setup_exe_path))
+ if (base::PathExists(setup_exe_path))
return setup_exe_path;
}
return base::FilePath();
@@ -130,12 +130,12 @@ base::FilePath FindExeRelativeToSetupExe(const base::FilePath setup_exe_path,
// name) and look for chrome.exe from there.
base::FilePath exe_path(
setup_exe_path.DirName().DirName().DirName().Append(exe_file));
- if (file_util::PathExists(exe_path))
+ if (base::PathExists(exe_path))
return exe_path;
// By way of mild future proofing, look up one to see if there's a
// |exe_file| in the version directory
exe_path = setup_exe_path.DirName().DirName().Append(exe_file);
- if (file_util::PathExists(exe_path))
+ if (base::PathExists(exe_path))
return exe_path;
}
return base::FilePath();
« no previous file with comments | « chrome/common/mac/app_mode_chrome_locator_unittest.mm ('k') | chrome/installer/setup/install.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698