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

Side by Side Diff: chrome/app/chrome_crash_reporter_client_win.cc

Issue 2221833005: Adding support for sampling crashes in Chrome on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scottmg's comments, adding DCHECK Created 4 years, 4 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
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.h ('k') | chrome/browser/DEPS » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // TODO(ananta/scottmg) 5 // TODO(ananta/scottmg)
6 // Add test coverage for Crashpad. 6 // Add test coverage for Crashpad.
7 #include "chrome/app/chrome_crash_reporter_client_win.h" 7 #include "chrome/app/chrome_crash_reporter_client_win.h"
8 8
9 #include <assert.h> 9 #include <assert.h>
10 #include <windows.h> 10 #include <windows.h>
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 349 }
350 350
351 bool ChromeCrashReporterClient::IsRunningUnattended() { 351 bool ChromeCrashReporterClient::IsRunningUnattended() {
352 return install_static::HasEnvironmentVariable16(install_static::kHeadless); 352 return install_static::HasEnvironmentVariable16(install_static::kHeadless);
353 } 353 }
354 354
355 bool ChromeCrashReporterClient::GetCollectStatsConsent() { 355 bool ChromeCrashReporterClient::GetCollectStatsConsent() {
356 return install_static::GetCollectStatsConsent(); 356 return install_static::GetCollectStatsConsent();
357 } 357 }
358 358
359 bool ChromeCrashReporterClient::GetCollectStatsInSample() {
360 return install_static::GetCollectStatsInSample();
361 }
362
359 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 363 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
360 const std::string& process_type) { 364 const std::string& process_type) {
361 return process_type == install_static::kRendererProcess || 365 return process_type == install_static::kRendererProcess ||
362 process_type == install_static::kPpapiPluginProcess || 366 process_type == install_static::kPpapiPluginProcess ||
363 process_type == install_static::kGpuProcess; 367 process_type == install_static::kGpuProcess;
364 } 368 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.h ('k') | chrome/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698