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

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: fix linux Created 7 years, 2 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return GoogleChromeDistribution::GetShortcutName(shortcut_type); 46 return GoogleChromeDistribution::GetShortcutName(shortcut_type);
47 case SHORTCUT_APP_LAUNCHER: 47 case SHORTCUT_APP_LAUNCHER:
48 return installer::GetLocalizedString( 48 return installer::GetLocalizedString(
49 IDS_APP_LIST_SHORTCUT_NAME_CANARY_BASE); 49 IDS_APP_LIST_SHORTCUT_NAME_CANARY_BASE);
50 default: 50 default:
51 DCHECK_EQ(shortcut_type, SHORTCUT_CHROME); 51 DCHECK_EQ(shortcut_type, SHORTCUT_CHROME);
52 return installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); 52 return installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE);
53 } 53 }
54 } 54 }
55 55
56 string16 GoogleChromeSxSDistribution::GetStartMenuShortcutSubfolder(
57 Subfolder subfolder_type) {
58 switch (subfolder_type) {
59 case SUBFOLDER_APPS:
60 return installer::GetLocalizedString(
61 IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY_BASE);
62 default:
63 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME);
64 return GetShortcutName(SHORTCUT_CHROME);
65 }
66 }
67
56 string16 GoogleChromeSxSDistribution::GetBaseAppId() { 68 string16 GoogleChromeSxSDistribution::GetBaseAppId() {
57 return kBrowserAppId; 69 return kBrowserAppId;
58 } 70 }
59 71
60 string16 GoogleChromeSxSDistribution::GetBrowserProgIdPrefix() { 72 string16 GoogleChromeSxSDistribution::GetBrowserProgIdPrefix() {
61 return kBrowserProgIdPrefix; 73 return kBrowserProgIdPrefix;
62 } 74 }
63 75
64 string16 GoogleChromeSxSDistribution::GetBrowserProgIdDesc() { 76 string16 GoogleChromeSxSDistribution::GetBrowserProgIdDesc() {
65 return kBrowserProgIdDesc; 77 return kBrowserProgIdDesc;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 return true; 119 return true;
108 } 120 }
109 121
110 bool GoogleChromeSxSDistribution::HasUserExperiments() { 122 bool GoogleChromeSxSDistribution::HasUserExperiments() {
111 return true; 123 return true;
112 } 124 }
113 125
114 string16 GoogleChromeSxSDistribution::ChannelName() { 126 string16 GoogleChromeSxSDistribution::ChannelName() {
115 return kChannelName; 127 return kChannelName;
116 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698