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 declares a class that contains various method related to branding. | 5 // This file declares a class that contains various method related to branding. |
6 | 6 |
7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
157 const installer::Product& product, | 157 const installer::Product& product, |
158 bool system_level); | 158 bool system_level); |
159 | 159 |
160 // The user has qualified for the inactive user toast experiment and this | 160 // The user has qualified for the inactive user toast experiment and this |
161 // function just performs it. | 161 // function just performs it. |
162 virtual void InactiveUserToastExperiment(int flavor, | 162 virtual void InactiveUserToastExperiment(int flavor, |
163 const string16& experiment_group, | 163 const string16& experiment_group, |
164 const installer::Product& installation, | 164 const installer::Product& installation, |
165 const FilePath& application_path); | 165 const FilePath& application_path); |
166 | 166 |
167 // Returns true if this distribution should write to the Omaha | |
168 // experiment_labels registry value. | |
169 virtual bool ShouldWriteExperimentLabels() const; | |
grt (UTC plus 2)
2012/11/24 02:58:37
I admire (and share) your desire to make this cons
grt (UTC plus 2)
2012/11/24 02:58:37
While writing the experiment labels is the fine-gr
SteveT
2012/11/26 20:45:06
I _was_ a bit confused that similar methods in thi
SteveT
2012/11/26 20:45:06
I thought about your original suggestion "HasExper
| |
170 | |
167 protected: | 171 protected: |
168 explicit BrowserDistribution(Type type); | 172 explicit BrowserDistribution(Type type); |
169 | 173 |
170 template<class DistributionClass> | 174 template<class DistributionClass> |
171 static BrowserDistribution* GetOrCreateBrowserDistribution( | 175 static BrowserDistribution* GetOrCreateBrowserDistribution( |
172 BrowserDistribution** dist); | 176 BrowserDistribution** dist); |
173 | 177 |
174 const Type type_; | 178 const Type type_; |
175 | 179 |
176 private: | 180 private: |
177 BrowserDistribution(); | 181 BrowserDistribution(); |
178 | 182 |
179 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 183 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
180 }; | 184 }; |
181 | 185 |
182 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 186 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
OLD | NEW |