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" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 installer_util::GetLocalizedString(IDS_PRODUCT_DESCRIPTION_BASE); | 88 installer_util::GetLocalizedString(IDS_PRODUCT_DESCRIPTION_BASE); |
89 return app_description; | 89 return app_description; |
90 } | 90 } |
91 | 91 |
92 int BrowserDistribution::GetInstallReturnCode( | 92 int BrowserDistribution::GetInstallReturnCode( |
93 installer_util::InstallStatus status) { | 93 installer_util::InstallStatus status) { |
94 switch (status) { | 94 switch (status) { |
95 case installer_util::FIRST_INSTALL_SUCCESS: | 95 case installer_util::FIRST_INSTALL_SUCCESS: |
96 case installer_util::INSTALL_REPAIRED: | 96 case installer_util::INSTALL_REPAIRED: |
97 case installer_util::NEW_VERSION_UPDATED: | 97 case installer_util::NEW_VERSION_UPDATED: |
| 98 case installer_util::EXISTING_VERSION_LAUNCHED: |
98 case installer_util::IN_USE_UPDATED: | 99 case installer_util::IN_USE_UPDATED: |
99 return 0; | 100 return 0; |
100 default: | 101 default: |
101 return status; | 102 return status; |
102 } | 103 } |
103 } | 104 } |
104 | 105 |
105 std::string BrowserDistribution::GetSafeBrowsingName() { | 106 std::string BrowserDistribution::GetSafeBrowsingName() { |
106 return "chromium"; | 107 return "chromium"; |
107 } | 108 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 145 |
145 void BrowserDistribution::LaunchUserExperiment( | 146 void BrowserDistribution::LaunchUserExperiment( |
146 installer_util::InstallStatus status, const installer::Version& version, | 147 installer_util::InstallStatus status, const installer::Version& version, |
147 bool system_install) { | 148 bool system_install) { |
148 } | 149 } |
149 | 150 |
150 | 151 |
151 void BrowserDistribution::InactiveUserToastExperiment(int flavor, | 152 void BrowserDistribution::InactiveUserToastExperiment(int flavor, |
152 bool system_install) { | 153 bool system_install) { |
153 } | 154 } |
OLD | NEW |