| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 specific implementation of BrowserDistribution class for | 5 // This file defines specific implementation of BrowserDistribution class for |
| 6 // Google Chrome. | 6 // Google Chrome. |
| 7 | 7 |
| 8 #include "chrome/installer/util/google_chrome_distribution.h" | 8 #include "chrome/installer/util/google_chrome_distribution.h" |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| 11 #include <wtsapi32.h> | 11 #include <wtsapi32.h> |
| 12 #include <msi.h> | 12 #include <msi.h> |
| 13 #include <sddl.h> | 13 #include <sddl.h> |
| 14 | 14 |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/file_path.h" | 16 #include "base/file_path.h" |
| 17 #include "base/json/json_value_serializer.h" | 17 #include "base/json/json_value_serializer.h" |
| 18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
| 20 #include "base/process_util.h" |
| 20 #include "base/rand_util.h" | 21 #include "base/rand_util.h" |
| 21 #include "base/string_number_conversions.h" | 22 #include "base/string_number_conversions.h" |
| 22 #include "base/string_split.h" | 23 #include "base/string_split.h" |
| 23 #include "base/string_util.h" | 24 #include "base/string_util.h" |
| 24 #include "base/stringprintf.h" | 25 #include "base/stringprintf.h" |
| 25 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
| 26 #include "base/win/registry.h" | 27 #include "base/win/registry.h" |
| 27 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
| 28 #include "chrome/common/attrition_experiments.h" | 29 #include "chrome/common/attrition_experiments.h" |
| 29 #include "chrome/common/chrome_result_codes.h" | 30 #include "chrome/common/chrome_result_codes.h" |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 // we waited for chrome to exit so the uninstall would not detect chrome | 802 // we waited for chrome to exit so the uninstall would not detect chrome |
| 802 // running. | 803 // running. |
| 803 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( | 804 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( |
| 804 installer::switches::kSystemLevelToast); | 805 installer::switches::kSystemLevelToast); |
| 805 | 806 |
| 806 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast, | 807 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast, |
| 807 GetType())); | 808 GetType())); |
| 808 base::LaunchProcess(cmd, base::LaunchOptions(), NULL); | 809 base::LaunchProcess(cmd, base::LaunchOptions(), NULL); |
| 809 } | 810 } |
| 810 #endif | 811 #endif |
| OLD | NEW |