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

Unified Diff: chrome/installer/setup/install.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/setup/install.cc
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index 689737303765b3df976ebbf06436e2f834d961df..43750d142d2c560fa3e627b19032cac09586e503 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -201,7 +201,7 @@ installer::InstallStatus InstallNewVersion(
if (!install_list->Do()) {
installer_state.UpdateStage(installer::ROLLINGBACK);
installer::InstallStatus result =
- file_util::PathExists(new_chrome_exe) && current_version->get() &&
+ base::PathExists(new_chrome_exe) && current_version->get() &&
new_version.Equals(*current_version->get()) ?
installer::SAME_VERSION_REPAIR_FAILED :
installer::INSTALL_FAILED;
@@ -226,7 +226,7 @@ installer::InstallStatus InstallNewVersion(
}
if (new_version.CompareTo(**current_version) > 0) {
- if (file_util::PathExists(new_chrome_exe)) {
+ if (base::PathExists(new_chrome_exe)) {
VLOG(1) << "Version updated to " << new_version.GetString()
<< " while running " << (*current_version)->GetString();
return installer::IN_USE_UPDATED;
@@ -302,7 +302,7 @@ bool CreateVisualElementsManifest(const base::FilePath& src_path,
// Some distributions of Chromium may not include visual elements. Only
// proceed if this distribution does.
- if (!file_util::PathExists(src_path.Append(elements_dir))) {
+ if (!base::PathExists(src_path.Append(elements_dir))) {
VLOG(1) << "No visual elements found, not writing "
<< installer::kVisualElementsManifest << " to " << src_path.value();
return true;
@@ -673,7 +673,7 @@ void HandleActiveSetupForBrowser(const base::FilePath& installation_root,
// shortcuts; if the decision is to create them, only shortcuts whose matching
// all-users shortcut isn't present on the system will be created.
InstallShortcutOperation install_operation =
- (!force && file_util::PathExists(first_run_sentinel) ?
+ (!force && base::PathExists(first_run_sentinel) ?
INSTALL_SHORTCUT_REPLACE_EXISTING :
INSTALL_SHORTCUT_CREATE_EACH_IF_NO_SYSTEM_LEVEL);
« no previous file with comments | « chrome/installer/launcher_support/chrome_launcher_support.cc ('k') | chrome/installer/setup/install_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698