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

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

Issue 2143893002: Purge the App Launcher code from Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 4 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 static bool SetClient(const base::string16& client); 168 static bool SetClient(const base::string16& client);
169 169
170 // Returns in 'client' the RLZ referral available for some distribution 170 // Returns in 'client' the RLZ referral available for some distribution
171 // partners. This value does not exist for most chrome or chromium installs. 171 // partners. This value does not exist for most chrome or chromium installs.
172 static bool GetReferral(base::string16* referral); 172 static bool GetReferral(base::string16* referral);
173 173
174 // Overwrites the current value of the referral with an empty string. Returns 174 // Overwrites the current value of the referral with an empty string. Returns
175 // true if this operation succeeded. 175 // true if this operation succeeded.
176 static bool ClearReferral(); 176 static bool ClearReferral();
177 177
178 // Set did_run "dr" in the client state value for app specified by
179 // |app_reg_data|. This is used to measure active users. Returns false if
180 // registry write fails.
181 static bool UpdateDidRunStateForApp(const AppRegistrationData& app_reg_data,
182 bool did_run);
183
184 // Convenience routine: UpdateDidRunStateForApp() specialized for the current 178 // Convenience routine: UpdateDidRunStateForApp() specialized for the current
185 // BrowserDistribution, and also updates Chrome Binary's did_run if the 179 // BrowserDistribution, and also updates Chrome Binary's did_run if the
186 // current distribution is multi-install. 180 // current distribution is multi-install.
187 static bool UpdateDidRunState(bool did_run, bool system_level); 181 static bool UpdateDidRunState(bool did_run, bool system_level);
188 182
189 // Returns only the channel name: "" (stable), "dev", "beta", "canary", or 183 // Returns only the channel name: "" (stable), "dev", "beta", "canary", or
190 // "unknown" if unknown. This value will not be modified by "-m" for a 184 // "unknown" if unknown. This value will not be modified by "-m" for a
191 // multi-install. See kChromeChannel* in util_constants.h 185 // multi-install. See kChromeChannel* in util_constants.h
192 static base::string16 GetChromeChannel(bool system_install); 186 static base::string16 GetChromeChannel(bool system_install);
193 187
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // this will do nothing to |experiment_labels|. This will return true if the 331 // this will do nothing to |experiment_labels|. This will return true if the
338 // label did not exist, or was successfully read. 332 // label did not exist, or was successfully read.
339 static bool ReadExperimentLabels(bool system_install, 333 static bool ReadExperimentLabels(bool system_install,
340 base::string16* experiment_labels); 334 base::string16* experiment_labels);
341 335
342 private: 336 private:
343 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); 337 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings);
344 }; 338 };
345 339
346 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ 340 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698