Commit 599457eb authored by Joshua Peraza's avatar Joshua Peraza Committed by Commit Bot

Don't sample reports with --enable-crash-reporter-for-testing

Bug: 923475
Change-Id: I83a67e5053bf50ce6299523eb0cadff68b8169d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506656Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638320}
parent c79836f6
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "base/logging.h" #include "base/logging.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/scoped_native_library.h" #include "base/scoped_native_library.h"
#include "base/base_switches.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "components/crash/content/app/crash_reporter_client.h" #include "components/crash/content/app/crash_reporter_client.h"
#include "components/crash/content/app/crashpad.h" #include "components/crash/content/app/crashpad.h"
...@@ -69,7 +70,14 @@ class AwCrashReporterClient : public crash_reporter::CrashReporterClient { ...@@ -69,7 +70,14 @@ class AwCrashReporterClient : public crash_reporter::CrashReporterClient {
*sanitize_stacks = true; *sanitize_stacks = true;
} }
unsigned int GetCrashDumpPercentage() override { return 100; } unsigned int GetCrashDumpPercentage() override {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableCrashReporterForTesting)) {
return 100;
}
return 100;
}
bool GetBrowserProcessType(std::string* ptype) override { bool GetBrowserProcessType(std::string* ptype) override {
*ptype = base::CommandLine::ForCurrentProcess()->HasSwitch( *ptype = base::CommandLine::ForCurrentProcess()->HasSwitch(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment