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

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

Issue 762723003: Prefix CommandLine usage with base namespace (Part 8: components) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 using google_breakpad::CrashReportSender; 171 using google_breakpad::CrashReportSender;
172 using google_breakpad::CrashGenerationServer; 172 using google_breakpad::CrashGenerationServer;
173 173
174 std::wstring pipe_name = kTestPipeName; 174 std::wstring pipe_name = kTestPipeName;
175 int max_reports = -1; 175 int max_reports = -1;
176 176
177 // The checkpoint file allows CrashReportSender to enforce the the maximum 177 // The checkpoint file allows CrashReportSender to enforce the the maximum
178 // reports per day quota. Does not seem to serve any other purpose. 178 // reports per day quota. Does not seem to serve any other purpose.
179 base::FilePath checkpoint_path = operating_dir.Append(kCheckPointFile); 179 base::FilePath checkpoint_path = operating_dir.Append(kCheckPointFile);
180 180
181 CommandLine& cmd_line = *CommandLine::ForCurrentProcess(); 181 base::CommandLine& cmd_line = *base::CommandLine::ForCurrentProcess();
182 182
183 base::FilePath dumps_path_to_use = dumps_path; 183 base::FilePath dumps_path_to_use = dumps_path;
184 184
185 if (cmd_line.HasSwitch(kDumpsDir)) { 185 if (cmd_line.HasSwitch(kDumpsDir)) {
186 dumps_path_to_use = 186 dumps_path_to_use =
187 base::FilePath(cmd_line.GetSwitchValueNative(kDumpsDir)); 187 base::FilePath(cmd_line.GetSwitchValueNative(kDumpsDir));
188 } 188 }
189 189
190 // We can override the send reports quota with a command line switch. 190 // We can override the send reports quota with a command line switch.
191 if (cmd_line.HasSwitch(kMaxReports)) 191 if (cmd_line.HasSwitch(kMaxReports))
(...skipping 286 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