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 implementation of GoogleChromeSxSDistribution. | 5 // This file defines implementation of GoogleChromeSxSDistribution. |
6 | 6 |
7 #include "chrome/installer/util/google_chrome_sxs_distribution.h" | 7 #include "chrome/installer/util/google_chrome_sxs_distribution.h" |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 | 11 |
12 #include "installer_util_strings.h" // NOLINT | 12 #include "installer_util_strings.h" // NOLINT |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}"; | 16 const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}"; |
17 const wchar_t kChannelName[] = L"canary"; | 17 const wchar_t kChannelName[] = L"canary"; |
18 const wchar_t kBrowserAppId[] = L"ChromeCanary"; | 18 const wchar_t kBrowserAppId[] = L"ChromeCanary"; |
19 const int kSxSIconIndex = 4; | 19 const int kSxSIconIndex = 4; |
20 | 20 |
21 } // namespace | 21 } // namespace |
22 | 22 |
23 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution() | 23 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution() |
24 : GoogleChromeDistribution() { | 24 : GoogleChromeDistribution() { |
25 GoogleChromeDistribution::set_product_guid(kChromeSxSGuid); | 25 GoogleChromeDistribution::set_product_guid(kChromeSxSGuid); |
26 } | 26 } |
27 | 27 |
28 string16 GoogleChromeSxSDistribution::GetApplicationName() { | 28 string16 GoogleChromeSxSDistribution::GetUnsuffixedAppName() { |
29 return L"Google Chrome Canary"; | 29 return L"Google Chrome Canary"; |
30 } | 30 } |
31 | 31 |
32 string16 GoogleChromeSxSDistribution::GetAppShortCutName() { | 32 string16 GoogleChromeSxSDistribution::GetAppShortCutName() { |
33 const string16& shortcut_name = | 33 const string16& shortcut_name = |
34 installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); | 34 installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); |
35 return shortcut_name; | 35 return shortcut_name; |
36 } | 36 } |
37 | 37 |
38 string16 GoogleChromeSxSDistribution::GetBrowserAppId() { | 38 string16 GoogleChromeSxSDistribution::GetBrowserAppId() { |
(...skipping 27 matching lines...) Expand all Loading... |
66 string16* handler_class_uuid, | 66 string16* handler_class_uuid, |
67 string16* type_lib_uuid, | 67 string16* type_lib_uuid, |
68 string16* type_lib_version, | 68 string16* type_lib_version, |
69 string16* interface_uuid) { | 69 string16* interface_uuid) { |
70 return false; | 70 return false; |
71 } | 71 } |
72 | 72 |
73 string16 GoogleChromeSxSDistribution::ChannelName() { | 73 string16 GoogleChromeSxSDistribution::ChannelName() { |
74 return kChannelName; | 74 return kChannelName; |
75 } | 75 } |
OLD | NEW |