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

Side by Side Diff: components/crash/tools/crash_service.cc

Issue 1210013007: clang/win: Fix warnings to prepare for building without -Wno-reorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-unsequenced
Patch Set: Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/crash/tools/crash_service.h" 5 #include "components/crash/tools/crash_service.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <sddl.h> 9 #include <sddl.h>
10 #include <fstream> 10 #include <fstream>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } // namespace 145 } // namespace
146 146
147 // Command line switches: 147 // Command line switches:
148 const char CrashService::kMaxReports[] = "max-reports"; 148 const char CrashService::kMaxReports[] = "max-reports";
149 const char CrashService::kNoWindow[] = "no-window"; 149 const char CrashService::kNoWindow[] = "no-window";
150 const char CrashService::kReporterTag[] = "reporter"; 150 const char CrashService::kReporterTag[] = "reporter";
151 const char CrashService::kDumpsDir[] = "dumps-dir"; 151 const char CrashService::kDumpsDir[] = "dumps-dir";
152 const char CrashService::kPipeName[] = "pipe-name"; 152 const char CrashService::kPipeName[] = "pipe-name";
153 153
154 CrashService::CrashService() 154 CrashService::CrashService()
155 : sender_(NULL), 155 : dumper_(NULL),
156 dumper_(NULL), 156 sender_(NULL),
157 requests_handled_(0), 157 requests_handled_(0),
158 requests_sent_(0), 158 requests_sent_(0),
159 clients_connected_(0), 159 clients_connected_(0),
160 clients_terminated_(0) { 160 clients_terminated_(0) {
161 } 161 }
162 162
163 CrashService::~CrashService() { 163 CrashService::~CrashService() {
164 base::AutoLock lock(sending_); 164 base::AutoLock lock(sending_);
165 delete dumper_; 165 delete dumper_;
166 delete sender_; 166 delete sender_;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, 478 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl,
479 &sacl_defaulted)) { 479 &sacl_defaulted)) {
480 return sec_desc; 480 return sec_desc;
481 } 481 }
482 } 482 }
483 483
484 return NULL; 484 return NULL;
485 } 485 }
486 486
487 } // namespace breakpad 487 } // namespace breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698