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

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

Issue 3077022: Extension package creation cleanup (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: This would be a lot easier if I could actually compile on Windows Created 10 years, 4 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
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | 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) 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 suffix = L""; 416 suffix = L"";
417 417
418 // Delete Software\Classes\ChromeExt, 418 // Delete Software\Classes\ChromeExt,
419 std::wstring ext_prog_id(ShellUtil::kRegClasses); 419 std::wstring ext_prog_id(ShellUtil::kRegClasses);
420 file_util::AppendToPath(&ext_prog_id, kChromeExtProgId); 420 file_util::AppendToPath(&ext_prog_id, kChromeExtProgId);
421 ext_prog_id.append(suffix); 421 ext_prog_id.append(suffix);
422 InstallUtil::DeleteRegistryKey(key, ext_prog_id); 422 InstallUtil::DeleteRegistryKey(key, ext_prog_id);
423 423
424 // Delete Software\Classes\.crx, 424 // Delete Software\Classes\.crx,
425 std::wstring ext_association(ShellUtil::kRegClasses); 425 std::wstring ext_association(ShellUtil::kRegClasses);
426 ext_association.append(L"\\."); 426 ext_association.append(L"\\");
427 ext_association.append(chrome::kExtensionFileExtension); 427 ext_association.append(chrome::kExtensionFileExtension);
428 InstallUtil::DeleteRegistryKey(key, ext_association); 428 InstallUtil::DeleteRegistryKey(key, ext_association);
429 } 429 }
430 } 430 }
431 431
432 installer_util::InstallStatus installer_setup::UninstallChrome( 432 installer_util::InstallStatus installer_setup::UninstallChrome(
433 const std::wstring& exe_path, bool system_uninstall, 433 const std::wstring& exe_path, bool system_uninstall,
434 bool remove_all, bool force_uninstall, 434 bool remove_all, bool force_uninstall,
435 const CommandLine& cmd_line, const wchar_t* cmd_params) { 435 const CommandLine& cmd_line, const wchar_t* cmd_params) {
436 installer_util::InstallStatus status = installer_util::UNINSTALL_CONFIRMED; 436 installer_util::InstallStatus status = installer_util::UNINSTALL_CONFIRMED;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 distribution_data); 570 distribution_data);
571 } 571 }
572 572
573 // Try and delete the preserved local state once the post-install 573 // Try and delete the preserved local state once the post-install
574 // operations are complete. 574 // operations are complete.
575 if (!local_state_path.empty()) 575 if (!local_state_path.empty())
576 file_util::Delete(local_state_path, false); 576 file_util::Delete(local_state_path, false);
577 577
578 return ret; 578 return ret;
579 } 579 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698