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

Unified Diff: chrome/test/mini_installer_test/installer_test_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
Index: chrome/test/mini_installer_test/installer_test_util.cc
diff --git a/chrome/test/mini_installer_test/installer_test_util.cc b/chrome/test/mini_installer_test/installer_test_util.cc
index 2d8e2d52a8c5a868220f1576886be5811e9f13eb..8b32f6a7f571b975cbbe4eb858a6d1260f0667eb 100644
--- a/chrome/test/mini_installer_test/installer_test_util.cc
+++ b/chrome/test/mini_installer_test/installer_test_util.cc
@@ -59,7 +59,7 @@ bool DeleteInstallDirectory(bool system_level,
bool has_install_dir = GetInstallDirectory(system_level,
ToBrowserDistributionType(type),
&path);
- if (!has_install_dir || !file_util::PathExists(path))
+ if (!has_install_dir || !base::PathExists(path))
return false;
path = path.AppendASCII(version);
return base::Delete(path, true);
@@ -154,7 +154,7 @@ std::string GetVersion(InstallationValidator::InstallationType product) {
}
bool Install(const base::FilePath& installer) {
- if (!file_util::PathExists(installer)) {
+ if (!base::PathExists(installer)) {
LOG(ERROR) << "Installer does not exist: " << installer.MaybeAsASCII();
return false;
}
@@ -165,7 +165,7 @@ bool Install(const base::FilePath& installer) {
}
bool Install(const base::FilePath& installer, const SwitchBuilder& switches) {
- if (!file_util::PathExists(installer)) {
+ if (!base::PathExists(installer)) {
LOG(ERROR) << "Installer does not exist: " << installer.MaybeAsASCII();
return false;
}
@@ -279,7 +279,7 @@ bool Uninstall(bool system_level,
bool RunAndWaitForCommandToFinish(CommandLine command) {
- if (!file_util::PathExists(command.GetProgram())) {
+ if (!base::PathExists(command.GetProgram())) {
LOG(ERROR) << "Command executable does not exist: "
<< command.GetProgram().MaybeAsASCII();
return false;
« no previous file with comments | « chrome/test/mini_installer_test/installer_path_provider.cc ('k') | chrome/test/mini_installer_test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698