| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/installer/util/user_experiment.h" | 5 #include "chrome/installer/util/user_experiment.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <sddl.h> | 8 #include <sddl.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 SetClient(experiment_group + outcome, true); | 523 SetClient(experiment_group + outcome, true); |
| 524 | 524 |
| 525 if (outcome != kToastExpUninstallGroup) | 525 if (outcome != kToastExpUninstallGroup) |
| 526 return; | 526 return; |
| 527 // The user wants to uninstall. This is a best effort operation. Note that | 527 // The user wants to uninstall. This is a best effort operation. Note that |
| 528 // we waited for chrome to exit so the uninstall would not detect chrome | 528 // we waited for chrome to exit so the uninstall would not detect chrome |
| 529 // running. | 529 // running. |
| 530 bool system_level_toast = base::CommandLine::ForCurrentProcess()->HasSwitch( | 530 bool system_level_toast = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 531 switches::kSystemLevelToast); | 531 switches::kSystemLevelToast); |
| 532 | 532 |
| 533 base::CommandLine cmd(InstallUtil::GetChromeUninstallCmd( | 533 base::CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast)); |
| 534 system_level_toast, product.distribution()->GetType())); | |
| 535 base::LaunchProcess(cmd, base::LaunchOptions()); | 534 base::LaunchProcess(cmd, base::LaunchOptions()); |
| 536 } | 535 } |
| 537 | 536 |
| 538 } // namespace installer | 537 } // namespace installer |
| OLD | NEW |