summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/chrome_render_process_observer.cc
diff options
context:
space:
mode:
authormad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 14:40:22 +0000
committermad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 14:40:22 +0000
commitc215cc0447d7a86964dd82bec54e91e01c0c6d0b (patch)
tree11b8923075c2790d4ca0bf4bd027edfb6fc09caa /chrome/renderer/chrome_render_process_observer.cc
parent9a3b349b671809ce7d790a6e0218689cabb7d9b2 (diff)
downloadchromium_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/renderer/chrome_render_process_observer.cc')
-rw-r--r--chrome/renderer/chrome_render_process_observer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index 2ec16dd..4808919 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -15,6 +15,7 @@
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/threading/platform_thread.h"
+#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_localization_peer.h"
@@ -222,6 +223,11 @@ ChromeRenderProcessObserver::ChromeRenderProcessObserver(
std::string error;
base::LoadNativeLibrary(FilePath(L"crypt32.dll"), &error);
#endif
+
+ // Setup initial set of crash dump data for Field Trials.
+ std::string state;
+ base::FieldTrialList::StatesToString(&state);
+ child_process_logging::InitExperimentList(state);
}
ChromeRenderProcessObserver::~ChromeRenderProcessObserver() {