| OLD | NEW |
| 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 a class that contains various method related to branding. | 5 // This file defines a class that contains various method related to branding. |
| 6 // It provides only default implementations of these methods. Usually to add | 6 // It provides only default implementations of these methods. Usually to add |
| 7 // specific branding, we will need to extend this class with a custom | 7 // specific branding, we will need to extend this class with a custom |
| 8 // implementation. | 8 // implementation. |
| 9 | 9 |
| 10 #include "chrome/installer/util/browser_distribution.h" | 10 #include "chrome/installer/util/browser_distribution.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 shortcut_type == SHORTCUT_CHROME_ALTERNATE) << shortcut_type; | 184 shortcut_type == SHORTCUT_CHROME_ALTERNATE) << shortcut_type; |
| 185 return 0; | 185 return 0; |
| 186 } | 186 } |
| 187 | 187 |
| 188 string16 BrowserDistribution::GetIconFilename() { | 188 string16 BrowserDistribution::GetIconFilename() { |
| 189 return installer::kChromeExe; | 189 return installer::kChromeExe; |
| 190 } | 190 } |
| 191 | 191 |
| 192 string16 BrowserDistribution::GetStartMenuShortcutSubfolder( | 192 string16 BrowserDistribution::GetStartMenuShortcutSubfolder( |
| 193 Subfolder subfolder_type) { | 193 Subfolder subfolder_type) { |
| 194 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME); | 194 switch (subfolder_type) { |
| 195 return GetShortcutName(SHORTCUT_CHROME); | 195 case SUBFOLDER_APPS: |
| 196 return installer::GetLocalizedString(IDS_APP_SHORTCUTS_SUBDIR_NAME_BASE); |
| 197 default: |
| 198 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME); |
| 199 return GetShortcutName(SHORTCUT_CHROME); |
| 200 } |
| 196 } | 201 } |
| 197 | 202 |
| 198 string16 BrowserDistribution::GetBaseAppId() { | 203 string16 BrowserDistribution::GetBaseAppId() { |
| 199 return L"Chromium"; | 204 return L"Chromium"; |
| 200 } | 205 } |
| 201 | 206 |
| 202 string16 BrowserDistribution::GetInstallSubDir() { | 207 string16 BrowserDistribution::GetInstallSubDir() { |
| 203 return L"Chromium"; | 208 return L"Chromium"; |
| 204 } | 209 } |
| 205 | 210 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 installer::InstallStatus install_status) { | 286 installer::InstallStatus install_status) { |
| 282 } | 287 } |
| 283 | 288 |
| 284 bool BrowserDistribution::ShouldSetExperimentLabels() { | 289 bool BrowserDistribution::ShouldSetExperimentLabels() { |
| 285 return false; | 290 return false; |
| 286 } | 291 } |
| 287 | 292 |
| 288 bool BrowserDistribution::HasUserExperiments() { | 293 bool BrowserDistribution::HasUserExperiments() { |
| 289 return false; | 294 return false; |
| 290 } | 295 } |
| OLD | NEW |