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

Unified Diff: cloud_print/service/win/installer.cc

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « chromeos/dbus/session_manager_client.cc ('k') | cloud_print/service/win/service_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/win/installer.cc
diff --git a/cloud_print/service/win/installer.cc b/cloud_print/service/win/installer.cc
index 57b477166bc910f0b7d23efadc7cfc24ee38829b..9d0de9e40eefb527e88e1f1a4e6e914f31c65da0 100644
--- a/cloud_print/service/win/installer.cc
+++ b/cloud_print/service/win/installer.cc
@@ -64,9 +64,9 @@ void DeleteShortcut(int dir_key, bool with_subdir) {
if (path.empty())
return;
if (with_subdir)
- file_util::Delete(path.DirName(), true);
+ base::Delete(path.DirName(), true);
else
- file_util::Delete(path, false);
+ base::Delete(path, false);
}
void DeleteShortcuts() {
@@ -95,7 +95,7 @@ HRESULT ProcessInstallerSwitches() {
if (!old_location.empty() &&
cloud_print::IsProgramsFilesParent(old_location) &&
old_location != cloud_print::GetInstallLocation(kGoogleUpdateId)) {
- file_util::Delete(old_location, true);
+ base::Delete(old_location, true);
}
cloud_print::SetGoogleUpdateKeys(
@@ -120,7 +120,7 @@ HRESULT ProcessInstallerSwitches() {
base::FilePath delete_path = command_line.GetSwitchValuePath(kDeleteSwitch);
if (!delete_path.empty() &&
cloud_print::IsProgramsFilesParent(delete_path)) {
- file_util::Delete(delete_path, true);
+ base::Delete(delete_path, true);
}
return S_OK;
}
« no previous file with comments | « chromeos/dbus/session_manager_client.cc ('k') | cloud_print/service/win/service_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698