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

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

Issue 6538025: Temp dir cleanup:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 std::wstring reg_path(installer::kMediaPlayerRegPath); 683 std::wstring reg_path(installer::kMediaPlayerRegPath);
684 file_util::AppendToPath(&reg_path, installer::kChromeExe); 684 file_util::AppendToPath(&reg_path, installer::kChromeExe);
685 InstallUtil::DeleteRegistryKey(hklm_key, reg_path); 685 InstallUtil::DeleteRegistryKey(hklm_key, reg_path);
686 } 686 }
687 687
688 // Unregister any dll servers that we may have registered for this 688 // Unregister any dll servers that we may have registered for this
689 // product. 689 // product.
690 if (product_state != NULL) { 690 if (product_state != NULL) {
691 std::vector<FilePath> com_dll_list; 691 std::vector<FilePath> com_dll_list;
692 product.AddComDllList(&com_dll_list); 692 product.AddComDllList(&com_dll_list);
693 FilePath dll_folder = installer_state.target_path().Append( 693 FilePath dll_folder = installer_state.target_path().AppendASCII(
694 UTF8ToWide(product_state->version().GetString())); 694 product_state->version().GetString());
695 695
696 scoped_ptr<WorkItemList> unreg_work_item_list( 696 scoped_ptr<WorkItemList> unreg_work_item_list(
697 WorkItem::CreateWorkItemList()); 697 WorkItem::CreateWorkItemList());
698 698
699 AddRegisterComDllWorkItems(dll_folder, 699 AddRegisterComDllWorkItems(dll_folder,
700 com_dll_list, 700 com_dll_list,
701 installer_state.system_install(), 701 installer_state.system_install(),
702 false, // Unregister 702 false, // Unregister
703 true, // May fail 703 true, // May fail
704 unreg_work_item_list.get()); 704 unreg_work_item_list.get());
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 // Try and delete the preserved local state once the post-install 788 // Try and delete the preserved local state once the post-install
789 // operations are complete. 789 // operations are complete.
790 if (!backup_state_file.empty()) 790 if (!backup_state_file.empty())
791 file_util::Delete(backup_state_file, false); 791 file_util::Delete(backup_state_file, false);
792 792
793 return ret; 793 return ret;
794 } 794 }
795 795
796 } // namespace installer 796 } // namespace installer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698