| 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 <wtsapi32.h> | 9 #include <wtsapi32.h> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
| 16 #include "base/string_util.h" | |
| 17 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
| 21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| 22 #include "chrome/common/attrition_experiments.h" | 22 #include "chrome/common/attrition_experiments.h" |
| 23 #include "chrome/common/chrome_result_codes.h" | 23 #include "chrome/common/chrome_result_codes.h" |
| 24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 25 #include "chrome/installer/util/browser_distribution.h" | 25 #include "chrome/installer/util/browser_distribution.h" |
| 26 #include "chrome/installer/util/google_update_constants.h" | 26 #include "chrome/installer/util/google_update_constants.h" |
| 27 #include "chrome/installer/util/google_update_settings.h" | 27 #include "chrome/installer/util/google_update_settings.h" |
| 28 #include "chrome/installer/util/helper.h" | 28 #include "chrome/installer/util/helper.h" |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // running. | 529 // running. |
| 530 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( | 530 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( |
| 531 switches::kSystemLevelToast); | 531 switches::kSystemLevelToast); |
| 532 | 532 |
| 533 CommandLine cmd(InstallUtil::GetChromeUninstallCmd( | 533 CommandLine cmd(InstallUtil::GetChromeUninstallCmd( |
| 534 system_level_toast, product.distribution()->GetType())); | 534 system_level_toast, product.distribution()->GetType())); |
| 535 base::LaunchProcess(cmd, base::LaunchOptions(), NULL); | 535 base::LaunchProcess(cmd, base::LaunchOptions(), NULL); |
| 536 } | 536 } |
| 537 | 537 |
| 538 } // namespace installer | 538 } // namespace installer |
| OLD | NEW |