Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1184)

Side by Side Diff: chrome/installer/util/browser_distribution.h

Issue 11280067: Refactor SetOmahaExperimentLabel out of gcpai and into install_util. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase; grt comments; unit tests Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 set the Omaha experiment_labels
168 // registry value.
169 virtual bool ShouldSetExperimentLabels();
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698