| OLD | NEW |
| 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 | 10 |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 VLOG(1) << "Uninstallation complete. Launching post-uninstall operations."; | 1263 VLOG(1) << "Uninstallation complete. Launching post-uninstall operations."; |
| 1264 browser_dist->DoPostUninstallOperations(product_state->version(), | 1264 browser_dist->DoPostUninstallOperations(product_state->version(), |
| 1265 backup_state_file, distribution_data); | 1265 backup_state_file, distribution_data); |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 // Try and delete the preserved local state once the post-install | 1268 // Try and delete the preserved local state once the post-install |
| 1269 // operations are complete. | 1269 // operations are complete. |
| 1270 if (!backup_state_file.empty()) | 1270 if (!backup_state_file.empty()) |
| 1271 file_util::Delete(backup_state_file, false); | 1271 file_util::Delete(backup_state_file, false); |
| 1272 | 1272 |
| 1273 // If user-level Chrome is being uninstalled and system-level Chrome is |
| 1274 // present, launch the system-level Active Setup command to do post-install |
| 1275 // tasks for this user (i.e., create shortcuts). |
| 1276 if (product.is_chrome() && !installer_state.system_install() && |
| 1277 original_state.GetProductState(true, browser_dist->GetType())) { |
| 1278 InstallUtil::TriggerActiveSetupCommand(); |
| 1279 } |
| 1280 |
| 1273 return ret; | 1281 return ret; |
| 1274 } | 1282 } |
| 1275 | 1283 |
| 1276 } // namespace installer | 1284 } // namespace installer |
| OLD | NEW |