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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 // Set did_run "dr" in the client state value for |dist|. This is used to | 161 // Set did_run "dr" in the client state value for |dist|. This is used to |
162 // measure active users. Returns false if writting to the registry failed. | 162 // measure active users. Returns false if writting to the registry failed. |
163 static bool UpdateDidRunStateForDistribution(BrowserDistribution* dist, | 163 static bool UpdateDidRunStateForDistribution(BrowserDistribution* dist, |
164 bool did_run, | 164 bool did_run, |
165 bool system_level); | 165 bool system_level); |
166 | 166 |
167 // Returns only the channel name: "" (stable), "dev", "beta", "canary", or | 167 // Returns only the channel name: "" (stable), "dev", "beta", "canary", or |
168 // "unknown" if unknown. This value will not be modified by "-m" for a | 168 // "unknown" if unknown. This value will not be modified by "-m" for a |
169 // multi-install. See kChromeChannel* in util_constants.h | 169 // multi-install. See kChromeChannel* in util_constants.h |
170 static std::wstring GetChromeChannel(bool system_install); | 170 static base::string16 GetChromeChannel(bool system_install); |
171 | 171 |
172 // Return a human readable modifier for the version string, e.g. | 172 // Return a human readable modifier for the version string, e.g. |
173 // the channel (dev, beta, stable). Returns true if this operation succeeded, | 173 // the channel (dev, beta, stable). Returns true if this operation succeeded, |
174 // on success, channel contains one of "", "unknown", "dev" or "beta" (unless | 174 // on success, channel contains one of "", "unknown", "dev" or "beta" (unless |
175 // it is a multi-install product, in which case it will return "m", | 175 // it is a multi-install product, in which case it will return "m", |
176 // "unknown-m", "dev-m", or "beta-m"). | 176 // "unknown-m", "dev-m", or "beta-m"). |
177 static bool GetChromeChannelAndModifiers(bool system_install, | 177 static bool GetChromeChannelAndModifiers(bool system_install, |
178 base::string16* channel); | 178 base::string16* channel); |
179 | 179 |
180 // This method changes the Google Update "ap" value to move the installation | 180 // This method changes the Google Update "ap" value to move the installation |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // this will do nothing to |experiment_labels|. This will return true if the | 304 // this will do nothing to |experiment_labels|. This will return true if the |
305 // label did not exist, or was successfully read. | 305 // label did not exist, or was successfully read. |
306 static bool ReadExperimentLabels(bool system_install, | 306 static bool ReadExperimentLabels(bool system_install, |
307 base::string16* experiment_labels); | 307 base::string16* experiment_labels); |
308 | 308 |
309 private: | 309 private: |
310 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 310 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
311 }; | 311 }; |
312 | 312 |
313 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 313 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
OLD | NEW |