| 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 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 Loading... |
| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 return true; | 120 return true; |
| 109 } | 121 } |
| 110 | 122 |
| 111 bool GoogleChromeSxSDistribution::HasUserExperiments() { | 123 bool GoogleChromeSxSDistribution::HasUserExperiments() { |
| 112 return true; | 124 return true; |
| 113 } | 125 } |
| 114 | 126 |
| 115 string16 GoogleChromeSxSDistribution::ChannelName() { | 127 string16 GoogleChromeSxSDistribution::ChannelName() { |
| 116 return kChannelName; | 128 return kChannelName; |
| 117 } | 129 } |
| OLD | NEW |