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

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

Issue 11826028: Add a method to read the Omaha experiment_labels value. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 #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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/google_update_settings.cc » ('j') | chrome/installer/util/google_update_settings.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698