OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" | 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 build"; | 17 const wchar_t kChannelName[] = L"canary build"; |
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 const installer::MasterPreferences& prefs) | 24 : GoogleChromeDistribution() { |
25 : GoogleChromeDistribution(prefs) { | |
26 GoogleChromeDistribution::set_product_guid(kChromeSxSGuid); | 25 GoogleChromeDistribution::set_product_guid(kChromeSxSGuid); |
27 } | 26 } |
28 | 27 |
29 std::wstring GoogleChromeSxSDistribution::GetAppShortCutName() { | 28 std::wstring GoogleChromeSxSDistribution::GetAppShortCutName() { |
30 const std::wstring& shortcut_name = | 29 const std::wstring& shortcut_name = |
31 installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); | 30 installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); |
32 return shortcut_name; | 31 return shortcut_name; |
33 } | 32 } |
34 | 33 |
35 std::wstring GoogleChromeSxSDistribution::GetBrowserAppId() { | 34 std::wstring GoogleChromeSxSDistribution::GetBrowserAppId() { |
(...skipping 19 matching lines...) Expand all Loading... |
55 } | 54 } |
56 | 55 |
57 bool GoogleChromeSxSDistribution::GetChromeChannel(std::wstring* channel) { | 56 bool GoogleChromeSxSDistribution::GetChromeChannel(std::wstring* channel) { |
58 *channel = kChannelName; | 57 *channel = kChannelName; |
59 return true; | 58 return true; |
60 } | 59 } |
61 | 60 |
62 std::wstring GoogleChromeSxSDistribution::ChannelName() { | 61 std::wstring GoogleChromeSxSDistribution::ChannelName() { |
63 return kChannelName; | 62 return kChannelName; |
64 } | 63 } |
65 | |
66 void GoogleChromeSxSDistribution::AppendUninstallCommandLineFlags( | |
67 CommandLine* cmd_line) { | |
68 DCHECK(cmd_line); | |
69 cmd_line->AppendSwitch(installer::switches::kChromeSxS); | |
70 } | |
OLD | NEW |