summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/chrome_render_process_observer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/chrome_render_process_observer.cc')
-rw-r--r--chrome/renderer/chrome_render_process_observer.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index 9b84e40..98517e2 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -4,6 +4,9 @@
#include "chrome/renderer/chrome_render_process_observer.h"
+#include <limits>
+#include <vector>
+
#include "base/allocator/allocator_extension.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -269,7 +272,11 @@ void ChromeRenderProcessObserver::OnGetCacheResourceStats() {
void ChromeRenderProcessObserver::OnSetFieldTrialGroup(
const std::string& field_trial_name,
const std::string& group_name) {
- base::FieldTrialList::CreateFieldTrial(field_trial_name, group_name);
+ base::FieldTrial* trial =
+ base::FieldTrialList::CreateFieldTrial(field_trial_name, group_name);
+ // Ensure the trial is marked as "used" by calling group() on it. This is
+ // needed to ensure the trial is properly reported in renderer crash reports.
+ trial->group();
chrome_variations::SetChildProcessLoggingVariationList();
}