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 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 <msi.h> | 11 #include <msi.h> |
12 #include <sddl.h> | 12 #include <sddl.h> |
13 #include <wtsapi32.h> | 13 #include <wtsapi32.h> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/json/json_file_value_serializer.h" | 18 #include "base/json/json_file_value_serializer.h" |
19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/process_util.h" | 21 #include "base/process_util.h" |
22 #include "base/rand_util.h" | 22 #include "base/rand_util.h" |
23 #include "base/string_split.h" | |
24 #include "base/string_util.h" | 23 #include "base/string_util.h" |
25 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
26 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
| 26 #include "base/strings/string_split.h" |
27 #include "base/utf_string_conversions.h" | 27 #include "base/utf_string_conversions.h" |
28 #include "base/win/registry.h" | 28 #include "base/win/registry.h" |
29 #include "base/win/windows_version.h" | 29 #include "base/win/windows_version.h" |
30 #include "chrome/common/attrition_experiments.h" | 30 #include "chrome/common/attrition_experiments.h" |
31 #include "chrome/common/chrome_result_codes.h" | 31 #include "chrome/common/chrome_result_codes.h" |
32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/net/test_server_locations.h" | 33 #include "chrome/common/net/test_server_locations.h" |
34 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
35 #include "chrome/installer/util/channel_info.h" | 35 #include "chrome/installer/util/channel_info.h" |
36 #include "chrome/installer/util/google_update_constants.h" | 36 #include "chrome/installer/util/google_update_constants.h" |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 installer::switches::kSystemLevelToast); | 863 installer::switches::kSystemLevelToast); |
864 | 864 |
865 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast, | 865 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast, |
866 GetType())); | 866 GetType())); |
867 base::LaunchProcess(cmd, base::LaunchOptions(), NULL); | 867 base::LaunchProcess(cmd, base::LaunchOptions(), NULL); |
868 } | 868 } |
869 | 869 |
870 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 870 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
871 return true; | 871 return true; |
872 } | 872 } |
OLD | NEW |