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 a class that contains various method related to branding. | 5 // This file defines a class that contains various method related to branding. |
6 // It provides only default implementations of these methods. Usually to add | 6 // It provides only default implementations of these methods. Usually to add |
7 // specific branding, we will need to extend this class with a custom | 7 // specific branding, we will need to extend this class with a custom |
8 // implementation. | 8 // implementation. |
9 | 9 |
10 #include "chrome/installer/util/browser_distribution.h" | 10 #include "chrome/installer/util/browser_distribution.h" |
11 | 11 |
12 #include "base/atomicops.h" | 12 #include "base/atomicops.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/win/registry.h" | 17 #include "base/win/registry.h" |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 #include "chrome/common/env_vars.h" | 19 #include "chrome/common/env_vars.h" |
20 #include "chrome/installer/util/chrome_frame_distribution.h" | 20 #include "chrome/installer/util/chrome_frame_distribution.h" |
21 #include "chrome/installer/util/chromium_binaries_distribution.h" | 21 #include "chrome/installer/util/chromium_binaries_distribution.h" |
22 #include "chrome/installer/util/google_chrome_distribution.h" | 22 #include "chrome/installer/util/google_chrome_distribution.h" |
23 #include "chrome/installer/util/google_chrome_binaries_distribution.h" | 23 #include "chrome/installer/util/google_chrome_binaries_distribution.h" |
24 #include "chrome/installer/util/google_chrome_sxs_distribution.h" | 24 #include "chrome/installer/util/google_chrome_sxs_distribution.h" |
25 #include "chrome/installer/util/install_util.h" | 25 #include "chrome/installer/util/install_util.h" |
26 #include "chrome/installer/util/l10n_string_util.h" | 26 #include "chrome/installer/util/l10n_string_util.h" |
27 #include "chrome/installer/util/master_preferences.h" | 27 #include "chrome/installer/util/master_preferences.h" |
28 #include "chrome/installer/util/shell_util.h" | |
28 | 29 |
29 #include "installer_util_strings.h" // NOLINT | 30 #include "installer_util_strings.h" // NOLINT |
30 | 31 |
31 using installer::MasterPreferences; | 32 using installer::MasterPreferences; |
32 | 33 |
33 namespace { | 34 namespace { |
34 | 35 |
35 const wchar_t kCommandExecuteImplUuid[] = | 36 const wchar_t kCommandExecuteImplUuid[] = |
36 L"{A2DF06F9-A21A-44A8-8A99-8B9C84F29160}"; | 37 L"{A2DF06F9-A21A-44A8-8A99-8B9C84F29160}"; |
37 const wchar_t kDelegateExecuteLibUuid[] = | 38 const wchar_t kDelegateExecuteLibUuid[] = |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 | 143 |
143 void BrowserDistribution::DoPostUninstallOperations( | 144 void BrowserDistribution::DoPostUninstallOperations( |
144 const Version& version, const FilePath& local_data_path, | 145 const Version& version, const FilePath& local_data_path, |
145 const string16& distribution_data) { | 146 const string16& distribution_data) { |
146 } | 147 } |
147 | 148 |
148 string16 BrowserDistribution::GetAppGuid() { | 149 string16 BrowserDistribution::GetAppGuid() { |
149 return L""; | 150 return L""; |
150 } | 151 } |
151 | 152 |
152 string16 BrowserDistribution::GetApplicationName() { | 153 string16 BrowserDistribution::GetAppName() { |
154 string16 app_name(GetUnsuffixedAppName()); | |
155 app_name += ShellUtil::GetCurrentInstallationSuffix(); | |
grt (UTC plus 2)
2012/06/01 14:11:29
Please move this functionality into ShellUtil and
gab
2012/06/01 16:29:19
Done.
| |
156 return app_name; | |
157 } | |
158 | |
159 string16 BrowserDistribution::GetUnsuffixedAppName() { | |
153 return L"Chromium"; | 160 return L"Chromium"; |
154 } | 161 } |
155 | 162 |
156 string16 BrowserDistribution::GetAppShortCutName() { | 163 string16 BrowserDistribution::GetAppShortCutName() { |
157 return GetApplicationName(); | 164 return GetUnsuffixedAppName(); |
158 } | 165 } |
159 | 166 |
160 string16 BrowserDistribution::GetAlternateApplicationName() { | 167 string16 BrowserDistribution::GetAlternateApplicationName() { |
161 return L"The Internet"; | 168 return L"The Internet"; |
162 } | 169 } |
163 | 170 |
164 string16 BrowserDistribution::GetBrowserAppId() { | 171 string16 BrowserDistribution::GetBrowserAppId() { |
165 return L"Chromium"; | 172 return L"Chromium"; |
166 } | 173 } |
167 | 174 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
270 const Version& version, const installer::Product& product, | 277 const Version& version, const installer::Product& product, |
271 bool system_level) { | 278 bool system_level) { |
272 } | 279 } |
273 | 280 |
274 | 281 |
275 void BrowserDistribution::InactiveUserToastExperiment(int flavor, | 282 void BrowserDistribution::InactiveUserToastExperiment(int flavor, |
276 const string16& experiment_group, | 283 const string16& experiment_group, |
277 const installer::Product& installation, | 284 const installer::Product& installation, |
278 const FilePath& application_path) { | 285 const FilePath& application_path) { |
279 } | 286 } |
OLD | NEW |