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

Side by Side Diff: chrome/installer/setup/uninstall.cc

Issue 9969186: Fix removal of delegate execute registration at uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698