Merge pull request #6441 from miniak/remove-windows-vista-check
Remove unnecessary >= Windows Vista check
This commit is contained in:
commit
53440e8993
1 changed files with 8 additions and 14 deletions
|
@ -239,9 +239,6 @@ bool CrashService::Initialize(const base::string16& application_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
SECURITY_ATTRIBUTES security_attributes = {0};
|
SECURITY_ATTRIBUTES security_attributes = {0};
|
||||||
SECURITY_ATTRIBUTES* security_attributes_actual = NULL;
|
|
||||||
|
|
||||||
if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
|
|
||||||
SECURITY_DESCRIPTOR* security_descriptor =
|
SECURITY_DESCRIPTOR* security_descriptor =
|
||||||
reinterpret_cast<SECURITY_DESCRIPTOR*>(
|
reinterpret_cast<SECURITY_DESCRIPTOR*>(
|
||||||
GetSecurityDescriptorForLowIntegrity());
|
GetSecurityDescriptorForLowIntegrity());
|
||||||
|
@ -251,11 +248,8 @@ bool CrashService::Initialize(const base::string16& application_name,
|
||||||
security_attributes.lpSecurityDescriptor = security_descriptor;
|
security_attributes.lpSecurityDescriptor = security_descriptor;
|
||||||
security_attributes.bInheritHandle = FALSE;
|
security_attributes.bInheritHandle = FALSE;
|
||||||
|
|
||||||
security_attributes_actual = &security_attributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create the OOP crash generator object.
|
// Create the OOP crash generator object.
|
||||||
dumper_ = new CrashGenerationServer(pipe_name, security_attributes_actual,
|
dumper_ = new CrashGenerationServer(pipe_name, &security_attributes,
|
||||||
&CrashService::OnClientConnected, this,
|
&CrashService::OnClientConnected, this,
|
||||||
&CrashService::OnClientDumpRequest, this,
|
&CrashService::OnClientDumpRequest, this,
|
||||||
&CrashService::OnClientExited, this,
|
&CrashService::OnClientExited, this,
|
||||||
|
|
Loading…
Reference in a new issue