| Index: cloud_print/virtual_driver/win/install/setup.cc
|
| diff --git a/cloud_print/virtual_driver/win/install/setup.cc b/cloud_print/virtual_driver/win/install/setup.cc
|
| index 510370f0b24ce486f7d20dd32c52100930a1f73c..740b2f2017d03a80c0920c5eef72a3f11c1bc5c3 100644
|
| --- a/cloud_print/virtual_driver/win/install/setup.cc
|
| +++ b/cloud_print/virtual_driver/win/install/setup.cc
|
| @@ -156,9 +156,9 @@ HRESULT RegisterPortMonitor(bool install, const base::FilePath& install_path) {
|
| return HRESULT_FROM_WIN32(exit_code);
|
| }
|
| } else {
|
| - if (!base::Delete(target_path, false)) {
|
| + if (!base::DeleteFile(target_path, false)) {
|
| SpoolerServiceCommand("stop");
|
| - bool deleted = base::Delete(target_path, false);
|
| + bool deleted = base::DeleteFile(target_path, false);
|
| SpoolerServiceCommand("start");
|
|
|
| if(!deleted) {
|
| @@ -480,7 +480,7 @@ HRESULT DoDelete(const base::FilePath& install_path) {
|
| if (!base::DirectoryExists(install_path))
|
| return S_FALSE;
|
| Sleep(5000); // Give parent some time to exit.
|
| - return base::Delete(install_path, true) ? S_OK : E_FAIL;
|
| + return base::DeleteFile(install_path, true) ? S_OK : E_FAIL;
|
| }
|
|
|
| HRESULT DoInstall(const base::FilePath& install_path) {
|
| @@ -493,7 +493,7 @@ HRESULT DoInstall(const base::FilePath& install_path) {
|
| if (!old_install_path.value().empty() &&
|
| install_path != old_install_path) {
|
| if (base::DirectoryExists(old_install_path))
|
| - base::Delete(old_install_path, true);
|
| + base::DeleteFile(old_install_path, true);
|
| }
|
| CreateUninstallKey(kUninstallId, LoadLocalString(IDS_DRIVER_NAME),
|
| kUninstallSwitch);
|
|
|