OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 ext_association.append(L"\\"); | 686 ext_association.append(L"\\"); |
687 ext_association.append(chrome::kExtensionFileExtension); | 687 ext_association.append(chrome::kExtensionFileExtension); |
688 InstallUtil::DeleteRegistryKey(roots[i], ext_association); | 688 InstallUtil::DeleteRegistryKey(roots[i], ext_association); |
689 } | 689 } |
690 } | 690 } |
691 | 691 |
692 bool ProcessChromeWorkItems(const InstallationState& original_state, | 692 bool ProcessChromeWorkItems(const InstallationState& original_state, |
693 const InstallerState& installer_state, | 693 const InstallerState& installer_state, |
694 const FilePath& setup_path, | 694 const FilePath& setup_path, |
695 const Product& product) { | 695 const Product& product) { |
696 if (product.is_chrome()) | 696 if (!product.is_chrome()) |
697 return false; | 697 return false; |
698 | 698 |
699 scoped_ptr<WorkItemList> item_list(WorkItem::CreateWorkItemList()); | 699 scoped_ptr<WorkItemList> item_list(WorkItem::CreateWorkItemList()); |
700 AddChromeWorkItems(original_state, installer_state, setup_path, Version(), | 700 AddChromeWorkItems(original_state, installer_state, setup_path, Version(), |
701 product, item_list.get()); | 701 product, item_list.get()); |
702 return item_list->Do(); | 702 return item_list->Do(); |
703 } | 703 } |
704 | 704 |
705 bool ProcessChromeFrameWorkItems(const InstallationState& original_state, | 705 bool ProcessChromeFrameWorkItems(const InstallationState& original_state, |
706 const InstallerState& installer_state, | 706 const InstallerState& installer_state, |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 | 944 |
945 // Try and delete the preserved local state once the post-install | 945 // Try and delete the preserved local state once the post-install |
946 // operations are complete. | 946 // operations are complete. |
947 if (!backup_state_file.empty()) | 947 if (!backup_state_file.empty()) |
948 file_util::Delete(backup_state_file, false); | 948 file_util::Delete(backup_state_file, false); |
949 | 949 |
950 return ret; | 950 return ret; |
951 } | 951 } |
952 | 952 |
953 } // namespace installer | 953 } // namespace installer |
OLD | NEW |