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

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

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: rework Created 7 years, 3 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
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"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return GoogleChromeDistribution::GetShortcutName(shortcut_type); 42 return GoogleChromeDistribution::GetShortcutName(shortcut_type);
43 case SHORTCUT_APP_LAUNCHER: 43 case SHORTCUT_APP_LAUNCHER:
44 return installer::GetLocalizedString( 44 return installer::GetLocalizedString(
45 IDS_APP_LIST_SHORTCUT_NAME_CANARY_BASE); 45 IDS_APP_LIST_SHORTCUT_NAME_CANARY_BASE);
46 default: 46 default:
47 DCHECK_EQ(shortcut_type, SHORTCUT_CHROME); 47 DCHECK_EQ(shortcut_type, SHORTCUT_CHROME);
48 return installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); 48 return installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE);
49 } 49 }
50 } 50 }
51 51
52 string16 GoogleChromeSxSDistribution::GetStartMenuShortcutSubfolder(
53 Subfolder subfolder_type) {
54 switch (subfolder_type) {
55 case SUBFOLDER_APPS:
56 return installer::GetLocalizedString(
57 IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY_BASE);
58 default:
59 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME);
60 return GetShortcutName(SHORTCUT_CHROME);
61 }
62 }
63
52 string16 GoogleChromeSxSDistribution::GetBaseAppId() { 64 string16 GoogleChromeSxSDistribution::GetBaseAppId() {
53 return kBrowserAppId; 65 return kBrowserAppId;
54 } 66 }
55 67
56 string16 GoogleChromeSxSDistribution::GetInstallSubDir() { 68 string16 GoogleChromeSxSDistribution::GetInstallSubDir() {
57 return GoogleChromeDistribution::GetInstallSubDir().append( 69 return GoogleChromeDistribution::GetInstallSubDir().append(
58 installer::kSxSSuffix); 70 installer::kSxSSuffix);
59 } 71 }
60 72
61 string16 GoogleChromeSxSDistribution::GetUninstallRegPath() { 73 string16 GoogleChromeSxSDistribution::GetUninstallRegPath() {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return true; 105 return true;
94 } 106 }
95 107
96 bool GoogleChromeSxSDistribution::HasUserExperiments() { 108 bool GoogleChromeSxSDistribution::HasUserExperiments() {
97 return true; 109 return true;
98 } 110 }
99 111
100 string16 GoogleChromeSxSDistribution::ChannelName() { 112 string16 GoogleChromeSxSDistribution::ChannelName() {
101 return kChannelName; 113 return kChannelName;
102 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698