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

Side by Side Diff: chrome/install_static/install_util.h

Issue 2422103004: Adding sampling support to installer crash reporter client. (Closed)
Patch Set: braces Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/install_static/install_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // This file contains helper functions which provide information about the 4 // This file contains helper functions which provide information about the
5 // current version of Chrome. This includes channel information, version 5 // current version of Chrome. This includes channel information, version
6 // information etc. This functionality is provided by using functions in 6 // information etc. This functionality is provided by using functions in
7 // kernel32 and advapi32. No other dependencies are allowed in this file. 7 // kernel32 and advapi32. No other dependencies are allowed in this file.
8 8
9 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 9 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
10 #define CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 10 #define CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
(...skipping 16 matching lines...) Expand all
27 extern const wchar_t kChromeChannelUnknown[]; 27 extern const wchar_t kChromeChannelUnknown[];
28 extern const wchar_t kChromeChannelCanary[]; 28 extern const wchar_t kChromeChannelCanary[];
29 extern const wchar_t kChromeChannelDev[]; 29 extern const wchar_t kChromeChannelDev[];
30 extern const wchar_t kChromeChannelBeta[]; 30 extern const wchar_t kChromeChannelBeta[];
31 extern const wchar_t kChromeChannelStable[]; 31 extern const wchar_t kChromeChannelStable[];
32 extern const wchar_t kChromeChannelStableExplicit[]; 32 extern const wchar_t kChromeChannelStableExplicit[];
33 extern const wchar_t kRegPathClientState[]; 33 extern const wchar_t kRegPathClientState[];
34 extern const wchar_t kRegPathClientStateMedium[]; 34 extern const wchar_t kRegPathClientStateMedium[];
35 extern const wchar_t kRegPathChromePolicy[]; 35 extern const wchar_t kRegPathChromePolicy[];
36 extern const wchar_t kRegApField[]; 36 extern const wchar_t kRegApField[];
37 // Registry key to store the stats/crash sampling state of Chrome. If set to 1,
38 // stats and crash reports will be uploaded in line with the user's consent,
39 // otherwise, uploads will be disabled. It is used to sample clients, to reduce
40 // server load for metics and crashes. This is controlled by the
41 // MetricsReporting feature in chrome_metrics_services_manager_client.cc and is
42 // written when metrics services are started up and when consent changes.
43 extern const wchar_t kRegValueChromeStatsSample[];
37 // Used to retrieve consent for uploading crashes and metrics. 44 // Used to retrieve consent for uploading crashes and metrics.
38 extern const wchar_t kRegValueUsageStats[]; 45 extern const wchar_t kRegValueUsageStats[];
39 extern const wchar_t kUninstallArgumentsField[]; 46 extern const wchar_t kUninstallArgumentsField[];
40 extern const wchar_t kMetricsReportingEnabled[]; 47 extern const wchar_t kMetricsReportingEnabled[];
41 extern const wchar_t kAppGuidCanary[]; 48 extern const wchar_t kAppGuidCanary[];
42 extern const wchar_t kAppGuidGoogleChrome[]; 49 extern const wchar_t kAppGuidGoogleChrome[];
43 extern const wchar_t kAppGuidGoogleBinaries[]; 50 extern const wchar_t kAppGuidGoogleBinaries[];
44 51
45 // TODO(ananta) 52 // TODO(ananta)
46 // https://crbug.com/604923 53 // https://crbug.com/604923
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // value of the |switch_name| passed in. 222 // value of the |switch_name| passed in.
216 std::string GetSwitchValueFromCommandLine(const std::string& command_line, 223 std::string GetSwitchValueFromCommandLine(const std::string& command_line,
217 const std::string& switch_name); 224 const std::string& switch_name);
218 225
219 // Caches the |ProcessType| of the current process. 226 // Caches the |ProcessType| of the current process.
220 extern ProcessType g_process_type; 227 extern ProcessType g_process_type;
221 228
222 } // namespace install_static 229 } // namespace install_static
223 230
224 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 231 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/install_static/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698