| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 | 219 |
| 220 bool BrowserDistribution::CanSetAsDefault() { | 220 bool BrowserDistribution::CanSetAsDefault() { |
| 221 return true; | 221 return true; |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool BrowserDistribution::CanCreateDesktopShortcuts() { | 224 bool BrowserDistribution::CanCreateDesktopShortcuts() { |
| 225 return true; | 225 return true; |
| 226 } | 226 } |
| 227 | 227 |
| 228 string16 BrowserDistribution::GetIconFilename() { |
| 229 return string16(); |
| 230 } |
| 231 |
| 228 int BrowserDistribution::GetIconIndex() { | 232 int BrowserDistribution::GetIconIndex() { |
| 233 // Assuming that main icon appears first alphabetically in the resource file |
| 234 // for GetIconFilename(). |
| 229 return 0; | 235 return 0; |
| 230 } | 236 } |
| 231 | 237 |
| 232 bool BrowserDistribution::GetChromeChannel(string16* channel) { | 238 bool BrowserDistribution::GetChromeChannel(string16* channel) { |
| 233 return false; | 239 return false; |
| 234 } | 240 } |
| 235 | 241 |
| 236 bool BrowserDistribution::GetCommandExecuteImplClsid( | 242 bool BrowserDistribution::GetCommandExecuteImplClsid( |
| 237 string16* handler_class_uuid) { | 243 string16* handler_class_uuid) { |
| 238 if (handler_class_uuid) | 244 if (handler_class_uuid) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 255 const Version& version, const installer::Product& product, | 261 const Version& version, const installer::Product& product, |
| 256 bool system_level) { | 262 bool system_level) { |
| 257 } | 263 } |
| 258 | 264 |
| 259 | 265 |
| 260 void BrowserDistribution::InactiveUserToastExperiment(int flavor, | 266 void BrowserDistribution::InactiveUserToastExperiment(int flavor, |
| 261 const string16& experiment_group, | 267 const string16& experiment_group, |
| 262 const installer::Product& installation, | 268 const installer::Product& installation, |
| 263 const FilePath& application_path) { | 269 const FilePath& application_path) { |
| 264 } | 270 } |
| OLD | NEW |