| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // This file defines implementation of GoogleChromeSxSDistribution. | |
| 6 | |
| 7 #include "chrome/installer/util/google_chrome_sxs_distribution.h" | |
| 8 | |
| 9 #include "base/command_line.h" | |
| 10 #include "base/logging.h" | |
| 11 #include "chrome/installer/util/installer_util_strings.h" | |
| 12 #include "chrome/installer/util/updating_app_registration_data.h" | |
| 13 | |
| 14 namespace { | |
| 15 | |
| 16 const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}"; | |
| 17 | |
| 18 } // namespace | |
| 19 | |
| 20 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution() | |
| 21 : GoogleChromeDistribution(std::unique_ptr<AppRegistrationData>( | |
| 22 new UpdatingAppRegistrationData(kChromeSxSGuid))) {} | |
| 23 | |
| 24 base::string16 GoogleChromeSxSDistribution::GetShortcutName() { | |
| 25 return installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); | |
| 26 } | |
| 27 | |
| 28 base::string16 GoogleChromeSxSDistribution::GetStartMenuShortcutSubfolder( | |
| 29 Subfolder subfolder_type) { | |
| 30 switch (subfolder_type) { | |
| 31 case SUBFOLDER_APPS: | |
| 32 return installer::GetLocalizedString( | |
| 33 IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY_BASE); | |
| 34 default: | |
| 35 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME); | |
| 36 return GetShortcutName(); | |
| 37 } | |
| 38 } | |
| OLD | NEW |