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 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 // Returns product data for Google Update. (Equivalent to calling | 242 // Returns product data for Google Update. (Equivalent to calling |
243 // GetUpdateDetailForAppGuid with the app guid for Google Update itself.) | 243 // GetUpdateDetailForAppGuid with the app guid for Google Update itself.) |
244 static bool GetUpdateDetailForGoogleUpdate(bool system_install, | 244 static bool GetUpdateDetailForGoogleUpdate(bool system_install, |
245 ProductData* data); | 245 ProductData* data); |
246 | 246 |
247 // Returns product data for the current product. (Equivalent to calling | 247 // Returns product data for the current product. (Equivalent to calling |
248 // GetUpdateDetailForApp with the app guid stored in BrowserDistribution.) | 248 // GetUpdateDetailForApp with the app guid stored in BrowserDistribution.) |
249 static bool GetUpdateDetail(bool system_install, ProductData* data); | 249 static bool GetUpdateDetail(bool system_install, ProductData* data); |
250 | 250 |
| 251 // Sets |experiment_labels| as the Omaha experiment_labels value in the |
| 252 // ClientState key for this Chrome product, if appropriate. If |
| 253 // |experiment_labels| is empty, this will delete the value instead. This will |
| 254 // return true if the label was successfully set (or deleted), false otherwise |
| 255 // (even if the label does not need to be set for this particular distribution |
| 256 // type). |
| 257 static bool SetExperimentLabels(bool system_install, |
| 258 const string16& experiment_labels); |
| 259 |
251 private: | 260 private: |
252 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 261 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
253 }; | 262 }; |
254 | 263 |
255 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 264 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
OLD | NEW |