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 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
20 #include "chrome/common/chrome_icon_resources_win.h" | 20 #include "chrome/common/chrome_icon_resources_win.h" |
21 #include "chrome/common/net/test_server_locations.h" | 21 #include "chrome/common/net/test_server_locations.h" |
22 #include "chrome/installer/util/app_registration_data.h" | 22 #include "chrome/installer/util/app_registration_data.h" |
23 #include "chrome/installer/util/channel_info.h" | 23 #include "chrome/installer/util/channel_info.h" |
24 #include "chrome/installer/util/google_update_constants.h" | 24 #include "chrome/installer/util/google_update_constants.h" |
25 #include "chrome/installer/util/google_update_settings.h" | 25 #include "chrome/installer/util/google_update_settings.h" |
26 #include "chrome/installer/util/helper.h" | 26 #include "chrome/installer/util/helper.h" |
27 #include "chrome/installer/util/install_util.h" | 27 #include "chrome/installer/util/install_util.h" |
| 28 #include "chrome/installer/util/installer_util_strings.h" |
28 #include "chrome/installer/util/l10n_string_util.h" | 29 #include "chrome/installer/util/l10n_string_util.h" |
29 #include "chrome/installer/util/uninstall_metrics.h" | 30 #include "chrome/installer/util/uninstall_metrics.h" |
30 #include "chrome/installer/util/updating_app_registration_data.h" | 31 #include "chrome/installer/util/updating_app_registration_data.h" |
31 #include "chrome/installer/util/util_constants.h" | 32 #include "chrome/installer/util/util_constants.h" |
32 #include "chrome/installer/util/wmi.h" | 33 #include "chrome/installer/util/wmi.h" |
33 #include "content/public/common/result_codes.h" | 34 #include "content/public/common/result_codes.h" |
34 | 35 |
35 #include "installer_util_strings.h" // NOLINT | |
36 | |
37 namespace { | 36 namespace { |
38 | 37 |
39 const wchar_t kChromeGuid[] = L"{8A69D345-D564-463c-AFF1-A69D9E530F96}"; | 38 const wchar_t kChromeGuid[] = L"{8A69D345-D564-463c-AFF1-A69D9E530F96}"; |
40 const wchar_t kBrowserAppId[] = L"Chrome"; | 39 const wchar_t kBrowserAppId[] = L"Chrome"; |
41 const wchar_t kBrowserProgIdPrefix[] = L"ChromeHTML"; | 40 const wchar_t kBrowserProgIdPrefix[] = L"ChromeHTML"; |
42 const wchar_t kBrowserProgIdDesc[] = L"Chrome HTML Document"; | 41 const wchar_t kBrowserProgIdDesc[] = L"Chrome HTML Document"; |
43 const wchar_t kCommandExecuteImplUuid[] = | 42 const wchar_t kCommandExecuteImplUuid[] = |
44 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}"; | 43 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}"; |
45 | 44 |
46 // Substitute the locale parameter in uninstall URL with whatever | 45 // Substitute the locale parameter in uninstall URL with whatever |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 GetAppGuid()); | 271 GetAppGuid()); |
273 } | 272 } |
274 | 273 |
275 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 274 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
276 return true; | 275 return true; |
277 } | 276 } |
278 | 277 |
279 bool GoogleChromeDistribution::HasUserExperiments() { | 278 bool GoogleChromeDistribution::HasUserExperiments() { |
280 return true; | 279 return true; |
281 } | 280 } |
OLD | NEW |