Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Side by Side Diff: chrome/tools/crash_service/crash_service.cc

Issue 10544121: Roll Breakpad to @970 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « breakpad/breakpad.gyp ('k') | remoting/base/breakpad_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/tools/crash_service/crash_service.h" 5 #include "chrome/tools/crash_service/crash_service.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <fstream> 9 #include <fstream>
10 #include <map> 10 #include <map>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 security_attributes.bInheritHandle = FALSE; 239 security_attributes.bInheritHandle = FALSE;
240 240
241 security_attributes_actual = &security_attributes; 241 security_attributes_actual = &security_attributes;
242 } 242 }
243 243
244 // Create the OOP crash generator object. 244 // Create the OOP crash generator object.
245 dumper_ = new CrashGenerationServer(pipe_name, security_attributes_actual, 245 dumper_ = new CrashGenerationServer(pipe_name, security_attributes_actual,
246 &CrashService::OnClientConnected, this, 246 &CrashService::OnClientConnected, this,
247 &CrashService::OnClientDumpRequest, this, 247 &CrashService::OnClientDumpRequest, this,
248 &CrashService::OnClientExited, this, 248 &CrashService::OnClientExited, this,
249 NULL, NULL,
249 true, &dumps_path.value()); 250 true, &dumps_path.value());
250 251
251 if (!dumper_) { 252 if (!dumper_) {
252 LOG(ERROR) << "could not create dumper"; 253 LOG(ERROR) << "could not create dumper";
253 if (security_attributes.lpSecurityDescriptor) 254 if (security_attributes.lpSecurityDescriptor)
254 LocalFree(security_attributes.lpSecurityDescriptor); 255 LocalFree(security_attributes.lpSecurityDescriptor);
255 return false; 256 return false;
256 } 257 }
257 258
258 if (!CreateTopWindow(::GetModuleHandleW(NULL), 259 if (!CreateTopWindow(::GetModuleHandleW(NULL),
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 SDDL_REVISION, 485 SDDL_REVISION,
485 &sec_desc, NULL)) { 486 &sec_desc, NULL)) {
486 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, 487 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl,
487 &sacl_defaulted)) { 488 &sacl_defaulted)) {
488 return sec_desc; 489 return sec_desc;
489 } 490 }
490 } 491 }
491 492
492 return NULL; 493 return NULL;
493 } 494 }
OLDNEW
« no previous file with comments | « breakpad/breakpad.gyp ('k') | remoting/base/breakpad_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698