| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 // Sets |experiment_labels| as the Omaha experiment_labels value in the | 251 // Sets |experiment_labels| as the Omaha experiment_labels value in the |
| 252 // ClientState key for this Chrome product, if appropriate. If | 252 // ClientState key for this Chrome product, if appropriate. If |
| 253 // |experiment_labels| is empty, this will delete the value instead. This will | 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 | 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 | 255 // (even if the label does not need to be set for this particular distribution |
| 256 // type). | 256 // type). |
| 257 static bool SetExperimentLabels(bool system_install, | 257 static bool SetExperimentLabels(bool system_install, |
| 258 const string16& experiment_labels); | 258 const string16& experiment_labels); |
| 259 | 259 |
| 260 // Reads the Omaha experiment_labels value in the ClientState key for this |
| 261 // Chrome product and writes it into |experiment_labels|. If this distribution |
| 262 // of Chrome does not set the experiment_labels value, this will do nothing to |
| 263 // |experiment_labels|. This will return true if the label was successfully |
| 264 // read. |
| 265 static bool ReadExperimentLabels(bool system_install, |
| 266 string16* experiment_labels); |
| 267 |
| 260 private: | 268 private: |
| 261 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 269 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
| 262 }; | 270 }; |
| 263 | 271 |
| 264 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 272 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
| OLD | NEW |