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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 base::string16 BrowserDistribution::GetVersionKey() const { | 96 base::string16 BrowserDistribution::GetVersionKey() const { |
97 return app_reg_data_->GetVersionKey(); | 97 return app_reg_data_->GetVersionKey(); |
98 } | 98 } |
99 | 99 |
100 void BrowserDistribution::DoPostUninstallOperations( | 100 void BrowserDistribution::DoPostUninstallOperations( |
101 const base::Version& version, const base::FilePath& local_data_path, | 101 const base::Version& version, const base::FilePath& local_data_path, |
102 const base::string16& distribution_data) { | 102 const base::string16& distribution_data) { |
103 } | 103 } |
104 | 104 |
105 base::string16 BrowserDistribution::GetBaseAppName() { | |
106 return L"Chromium"; | |
107 } | |
108 | |
109 base::string16 BrowserDistribution::GetDisplayName() { | 105 base::string16 BrowserDistribution::GetDisplayName() { |
110 return GetShortcutName(); | 106 return GetShortcutName(); |
111 } | 107 } |
112 | 108 |
113 base::string16 BrowserDistribution::GetShortcutName() { | 109 base::string16 BrowserDistribution::GetShortcutName() { |
114 return GetBaseAppName(); | 110 return installer::GetLocalizedString(IDS_PRODUCT_NAME_BASE); |
115 } | 111 } |
116 | 112 |
117 base::string16 BrowserDistribution::GetStartMenuShortcutSubfolder( | 113 base::string16 BrowserDistribution::GetStartMenuShortcutSubfolder( |
118 Subfolder subfolder_type) { | 114 Subfolder subfolder_type) { |
119 switch (subfolder_type) { | 115 switch (subfolder_type) { |
120 case SUBFOLDER_APPS: | 116 case SUBFOLDER_APPS: |
121 return installer::GetLocalizedString(IDS_APP_SHORTCUTS_SUBDIR_NAME_BASE); | 117 return installer::GetLocalizedString(IDS_APP_SHORTCUTS_SUBDIR_NAME_BASE); |
122 default: | 118 default: |
123 DCHECK_EQ(SUBFOLDER_CHROME, subfolder_type); | 119 DCHECK_EQ(SUBFOLDER_CHROME, subfolder_type); |
124 return GetShortcutName(); | 120 return GetShortcutName(); |
(...skipping 19 matching lines...) Expand all Loading... |
144 } | 140 } |
145 | 141 |
146 base::string16 BrowserDistribution::GetDistributionData(HKEY root_key) { | 142 base::string16 BrowserDistribution::GetDistributionData(HKEY root_key) { |
147 return L""; | 143 return L""; |
148 } | 144 } |
149 | 145 |
150 void BrowserDistribution::UpdateInstallStatus(bool system_install, | 146 void BrowserDistribution::UpdateInstallStatus(bool system_install, |
151 installer::ArchiveType archive_type, | 147 installer::ArchiveType archive_type, |
152 installer::InstallStatus install_status) { | 148 installer::InstallStatus install_status) { |
153 } | 149 } |
OLD | NEW |