diff options
author | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-26 14:40:22 +0000 |
---|---|---|
committer | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-26 14:40:22 +0000 |
commit | c215cc0447d7a86964dd82bec54e91e01c0c6d0b (patch) | |
tree | 11b8923075c2790d4ca0bf4bd027edfb6fc09caa /chrome/common/child_process_logging.h | |
parent | 9a3b349b671809ce7d790a6e0218689cabb7d9b2 (diff) | |
download | chromium_src-c215cc0447d7a86964dd82bec54e91e01c0c6d0b.zip chromium_src-c215cc0447d7a86964dd82bec54e91e01c0c6d0b.tar.gz chromium_src-c215cc0447d7a86964dd82bec54e91e01c0c6d0b.tar.bz2 |
Add experiments info to crash dumps.
BUG=None
TEST=Make sure that the crash dumps are correctly generated and contain experiments information when appropriate.
Review URL: http://codereview.chromium.org/9432033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_logging.h')
-rw-r--r-- | chrome/common/child_process_logging.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/common/child_process_logging.h b/chrome/common/child_process_logging.h index ab3750d5..e7c76b3 100644 --- a/chrome/common/child_process_logging.h +++ b/chrome/common/child_process_logging.h @@ -24,6 +24,11 @@ struct GPUInfo; // dependency. static const int kMaxReportedActiveExtensions = 10; +// The maximum number of experiment chunks we will report. +// Also used in chrome/app, but we define it here to avoid a common->app +// dependency. +static const int kMaxReportedExperimentChunks = 15; + // The maximum number of prn-info-* records. static const size_t kMaxReportedPrinterRecords = 4; @@ -98,6 +103,13 @@ void SetPrinterInfo(const char* printer_info); // values in |command_line|. void SetCommandLine(const CommandLine* command_line); +// Initialize the list of experiment info to send along with crash reports. +void InitExperimentList(const std::string& state); + +// Add a new experiment group info to send along with crash reports. +void AddFieldTrialGroup(const std::string& field_trial_name, + const std::string& group_name); + #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_MACOSX) // Sets the product channel data to send along with crash reports to |channel|. void SetChannel(const std::string& channel); |