Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/installer/util/google_chrome_sxs_distribution.cc

Issue 2791593002: Allow installer::GetLocalizedString to return mode-specific strings. (Closed)
Patch Set: manzagop review part the deux Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/installer/util/google_chrome_sxs_distribution.h ('k') | chrome/installer/util/install_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698