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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 // Returns in |language| the language selected by the user when downloading | 121 // Returns in |language| the language selected by the user when downloading |
122 // chrome. This information is collected by the web server used to download | 122 // chrome. This information is collected by the web server used to download |
123 // the chrome installer. Returns false if the information is not available. | 123 // the chrome installer. Returns false if the information is not available. |
124 static bool GetLanguage(std::wstring* language); | 124 static bool GetLanguage(std::wstring* language); |
125 | 125 |
126 // Returns in |brand| the RLZ brand code or distribution tag that has been | 126 // Returns in |brand| the RLZ brand code or distribution tag that has been |
127 // assigned to a partner. Returns false if the information is not available. | 127 // assigned to a partner. Returns false if the information is not available. |
128 // | 128 // |
129 // NOTE: This function is Windows only. If the code you are writing is not | 129 // NOTE: This function is Windows only. If the code you are writing is not |
130 // specifically for Windows, prefer calling google_util::GetBrand(). | 130 // specifically for Windows, prefer calling google_brand::GetBrand(). |
131 static bool GetBrand(std::wstring* brand); | 131 static bool GetBrand(std::wstring* brand); |
132 | 132 |
133 // Returns in |brand| the RLZ reactivation brand code or distribution tag | 133 // Returns in |brand| the RLZ reactivation brand code or distribution tag |
134 // that has been assigned to a partner for reactivating a dormant chrome | 134 // that has been assigned to a partner for reactivating a dormant chrome |
135 // install. Returns false if the information is not available. | 135 // install. Returns false if the information is not available. |
136 // | 136 // |
137 // NOTE: This function is Windows only. If the code you are writing is not | 137 // NOTE: This function is Windows only. If the code you are writing is not |
138 // specifically for Windows, prefer calling | 138 // specifically for Windows, prefer calling |
139 // google_util::GetReactivationBrand(). | 139 // google_brand::GetReactivationBrand(). |
140 static bool GetReactivationBrand(std::wstring* brand); | 140 static bool GetReactivationBrand(std::wstring* brand); |
141 | 141 |
142 // Returns in |client| the google_update client field, which is currently | 142 // Returns in |client| the google_update client field, which is currently |
143 // used to track experiments. Returns false if the entry does not exist. | 143 // used to track experiments. Returns false if the entry does not exist. |
144 static bool GetClient(std::wstring* client); | 144 static bool GetClient(std::wstring* client); |
145 | 145 |
146 // Sets the google_update client field. Unlike GetClient() this is set only | 146 // Sets the google_update client field. Unlike GetClient() this is set only |
147 // for the current user. Returns false if the operation failed. | 147 // for the current user. Returns false if the operation failed. |
148 static bool SetClient(const std::wstring& client); | 148 static bool SetClient(const std::wstring& client); |
149 | 149 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // this will do nothing to |experiment_labels|. This will return true if the | 306 // this will do nothing to |experiment_labels|. This will return true if the |
307 // label did not exist, or was successfully read. | 307 // label did not exist, or was successfully read. |
308 static bool ReadExperimentLabels(bool system_install, | 308 static bool ReadExperimentLabels(bool system_install, |
309 base::string16* experiment_labels); | 309 base::string16* experiment_labels); |
310 | 310 |
311 private: | 311 private: |
312 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 312 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
313 }; | 313 }; |
314 | 314 |
315 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 315 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
OLD | NEW |