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

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

Issue 2258243002: Consistently use namespaced base::Version in chrome/installer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <windows.h> 9 #include <windows.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 // Processes uninstall WorkItems from install_worker in no-rollback-list. 160 // Processes uninstall WorkItems from install_worker in no-rollback-list.
161 void ProcessChromeWorkItems(const InstallerState& installer_state, 161 void ProcessChromeWorkItems(const InstallerState& installer_state,
162 const Product& product) { 162 const Product& product) {
163 std::unique_ptr<WorkItemList> work_item_list(WorkItem::CreateWorkItemList()); 163 std::unique_ptr<WorkItemList> work_item_list(WorkItem::CreateWorkItemList());
164 work_item_list->set_log_message( 164 work_item_list->set_log_message(
165 "Cleanup OS upgrade command and deprecated per-user registrations"); 165 "Cleanup OS upgrade command and deprecated per-user registrations");
166 work_item_list->set_best_effort(true); 166 work_item_list->set_best_effort(true);
167 work_item_list->set_rollback_enabled(false); 167 work_item_list->set_rollback_enabled(false);
168 AddOsUpgradeWorkItems(installer_state, base::FilePath(), Version(), product, 168 AddOsUpgradeWorkItems(installer_state, base::FilePath(), base::Version(),
169 work_item_list.get()); 169 product, work_item_list.get());
170 // Perform a best-effort cleanup of per-user keys. On system-level installs 170 // Perform a best-effort cleanup of per-user keys. On system-level installs
171 // this will only cleanup keys for the user running the uninstall but it was 171 // this will only cleanup keys for the user running the uninstall but it was
172 // considered that this was good enough (better than triggering Active Setup 172 // considered that this was good enough (better than triggering Active Setup
173 // for all users solely for this cleanup). 173 // for all users solely for this cleanup).
174 AddCleanupDeprecatedPerUserRegistrationsWorkItems(product, 174 AddCleanupDeprecatedPerUserRegistrationsWorkItems(product,
175 work_item_list.get()); 175 work_item_list.get());
176 work_item_list->Do(); 176 work_item_list->Do();
177 } 177 }
178 178
179 void ProcessIELowRightsPolicyWorkItems(const InstallerState& installer_state) { 179 void ProcessIELowRightsPolicyWorkItems(const InstallerState& installer_state) {
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 // If we need a reboot to continue, schedule the parent directories for 1373 // If we need a reboot to continue, schedule the parent directories for
1374 // deletion unconditionally. If they are not empty, the session manager 1374 // deletion unconditionally. If they are not empty, the session manager
1375 // will not delete them on reboot. 1375 // will not delete them on reboot.
1376 ScheduleParentAndGrandparentForDeletion(target_path); 1376 ScheduleParentAndGrandparentForDeletion(target_path);
1377 } else if (DeleteChromeDirectoriesIfEmpty(target_path) == DELETE_FAILED) { 1377 } else if (DeleteChromeDirectoriesIfEmpty(target_path) == DELETE_FAILED) {
1378 *uninstall_status = UNINSTALL_FAILED; 1378 *uninstall_status = UNINSTALL_FAILED;
1379 } 1379 }
1380 } 1380 }
1381 1381
1382 } // namespace installer 1382 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_util_unittest.cc ('k') | chrome/installer/test/alternate_version_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698