Commit 80353b52 authored by georgesak's avatar georgesak Committed by Commit bot

Add enrolled to domain bit to crash keys in renderer process.

This is a follow up to 2514483002 which adds this flag to the browser process.

BUG=660868

Review-Url: https://codereview.chromium.org/2618623003
Cr-Commit-Position: refs/heads/master@{#442690}
parent c21db481
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "base/bind.h" #include "base/bind.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/compiler_specific.h" #include "base/compiler_specific.h"
#include "base/debug/crash_logging.h"
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/sys_info.h" #include "base/sys_info.h"
#include "base/task_scheduler/initialization_util.h" #include "base/task_scheduler/initialization_util.h"
...@@ -35,6 +36,10 @@ ...@@ -35,6 +36,10 @@
#include "third_party/WebKit/public/web/WebFrame.h" #include "third_party/WebKit/public/web/WebFrame.h"
#include "v8/include/v8.h" #include "v8/include/v8.h"
#if defined(OS_WIN)
#include "base/win/win_util.h"
#endif
namespace { namespace {
enum WorkerPoolType : size_t { enum WorkerPoolType : size_t {
...@@ -155,6 +160,13 @@ namespace content { ...@@ -155,6 +160,13 @@ namespace content {
RenderProcessImpl::RenderProcessImpl() RenderProcessImpl::RenderProcessImpl()
: enabled_bindings_(0) { : enabled_bindings_(0) {
#if defined(OS_WIN) #if defined(OS_WIN)
// Record whether the machine is domain joined in a crash key. This will be
// used to better identify whether crashes are from enterprise users.
// Note that this is done very early on so that crashes have the highest
// chance of getting tagged.
base::debug::SetCrashKeyValue("enrolled-to-domain",
base::win::IsEnrolledToDomain() ? "yes" : "no");
// HACK: See http://b/issue?id=1024307 for rationale. // HACK: See http://b/issue?id=1024307 for rationale.
if (GetModuleHandle(L"LPK.DLL") == NULL) { if (GetModuleHandle(L"LPK.DLL") == NULL) {
// Makes sure lpk.dll is loaded by gdi32 to make sure ExtTextOut() works // Makes sure lpk.dll is loaded by gdi32 to make sure ExtTextOut() works
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment