| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file defines the methods useful for uninstalling Chrome. | 5 // This file defines the methods useful for uninstalling Chrome. |
| 6 | 6 |
| 7 #include "chrome/installer/setup/uninstall.h" | 7 #include "chrome/installer/setup/uninstall.h" |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 // being removed and we know that the DLLs were previously registered. | 604 // being removed and we know that the DLLs were previously registered. |
| 605 // Simplest would be to always register them. | 605 // Simplest would be to always register them. |
| 606 if (installed_version.get() && !is_chrome) { | 606 if (installed_version.get() && !is_chrome) { |
| 607 RegisterComDllList(product.package().path().Append( | 607 RegisterComDllList(product.package().path().Append( |
| 608 installed_version->GetString()), | 608 installed_version->GetString()), |
| 609 product.system_level(), false, false); | 609 product.system_level(), false, false); |
| 610 } | 610 } |
| 611 } | 611 } |
| 612 | 612 |
| 613 // Close any Chrome Frame helper processes that may be running. | 613 // Close any Chrome Frame helper processes that may be running. |
| 614 if (InstallUtil::IsChromeFrameProcess()) { | 614 if (product.distribution()->GetType() == BrowserDistribution::CHROME_FRAME) { |
| 615 VLOG(1) << "Closing the Chrome Frame helper process"; | 615 VLOG(1) << "Closing the Chrome Frame helper process"; |
| 616 CloseChromeFrameHelperProcess(); | 616 CloseChromeFrameHelperProcess(); |
| 617 } | 617 } |
| 618 | 618 |
| 619 if (!installed_version.get()) | 619 if (!installed_version.get()) |
| 620 return installer_util::UNINSTALL_SUCCESSFUL; | 620 return installer_util::UNINSTALL_SUCCESSFUL; |
| 621 | 621 |
| 622 // Finally delete all the files from Chrome folder after moving setup.exe | 622 // Finally delete all the files from Chrome folder after moving setup.exe |
| 623 // and the user's Local State to a temp location. | 623 // and the user's Local State to a temp location. |
| 624 bool delete_profile = ShouldDeleteProfile(cmd_line, status, product); | 624 bool delete_profile = ShouldDeleteProfile(cmd_line, status, product); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 // Try and delete the preserved local state once the post-install | 656 // Try and delete the preserved local state once the post-install |
| 657 // operations are complete. | 657 // operations are complete. |
| 658 if (!backup_state_file.empty()) | 658 if (!backup_state_file.empty()) |
| 659 file_util::Delete(backup_state_file, false); | 659 file_util::Delete(backup_state_file, false); |
| 660 | 660 |
| 661 return ret; | 661 return ret; |
| 662 } | 662 } |
| 663 | 663 |
| 664 } // namespace installer | 664 } // namespace installer |
| 665 | 665 |
| OLD | NEW |