| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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" |
| 11 | 11 |
| 12 #include "base/registry.h" | 12 #include "base/registry.h" |
| 13 #include "chrome/installer/util/google_chrome_distribution.h" | 13 #include "chrome/installer/util/google_chrome_distribution.h" |
| 14 | 14 |
| 15 #if defined(CHROME_EXP_BUILD) |
| 16 #include "chrome/installer/util/exp/experimental_browser_distribution.h" |
| 17 #endif |
| 18 |
| 15 BrowserDistribution* BrowserDistribution::GetDistribution() { | 19 BrowserDistribution* BrowserDistribution::GetDistribution() { |
| 16 static BrowserDistribution* dist = NULL; | 20 static BrowserDistribution* dist = NULL; |
| 17 if (dist == NULL) { | 21 if (dist == NULL) { |
| 18 #if defined(GOOGLE_CHROME_BUILD) | 22 #if defined(CHROME_EXP_BUILD) |
| 23 dist = new ExperimentalBrowserDistribution(); |
| 24 #elif defined(GOOGLE_CHROME_BUILD) |
| 19 dist = new GoogleChromeDistribution(); | 25 dist = new GoogleChromeDistribution(); |
| 20 #else | 26 #else |
| 21 dist = new BrowserDistribution(); | 27 dist = new BrowserDistribution(); |
| 22 #endif | 28 #endif |
| 23 } | 29 } |
| 24 return dist; | 30 return dist; |
| 25 } | 31 } |
| 26 | 32 |
| 27 void BrowserDistribution::DoPostUninstallOperations( | 33 void BrowserDistribution::DoPostUninstallOperations( |
| 28 const installer::Version& version, const std::wstring& local_data_path, | 34 const installer::Version& version, const std::wstring& local_data_path, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 93 } |
| 88 | 94 |
| 89 void BrowserDistribution::LaunchUserExperiment( | 95 void BrowserDistribution::LaunchUserExperiment( |
| 90 installer_util::InstallStatus status, const installer::Version& version, | 96 installer_util::InstallStatus status, const installer::Version& version, |
| 91 bool system_install) { | 97 bool system_install) { |
| 92 } | 98 } |
| 93 | 99 |
| 94 | 100 |
| 95 void BrowserDistribution::InactiveUserToastExperiment() { | 101 void BrowserDistribution::InactiveUserToastExperiment() { |
| 96 } | 102 } |
| OLD | NEW |