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

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

Issue 5564009: Temporary workaround to get tests that reference singletons either directly o... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | chrome_frame/chrome_frame_unittest_main.cc » ('j') | 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/chrome_frame_unittest_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698