summaryrefslogtreecommitdiffstats
path: root/content/shell/common/shell_switches.cc
diff options
context:
space:
mode:
authorkouhei@chromium.org <kouhei@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 12:09:32 +0000
committerkouhei@chromium.org <kouhei@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 12:09:32 +0000
commitf98bb7f5ef1e6ce518b021826256beb9ac58335e (patch)
tree5ce84f86443dfa063cef6dbb747bad54a3223b6f /content/shell/common/shell_switches.cc
parent119ac96a539c280ab90864b9d563b8cb1b99582b (diff)
downloadchromium_src-f98bb7f5ef1e6ce518b021826256beb9ac58335e.zip
chromium_src-f98bb7f5ef1e6ce518b021826256beb9ac58335e.tar.gz
chromium_src-f98bb7f5ef1e6ce518b021826256beb9ac58335e.tar.bz2
LeakDetector: Add commandline option to force crash when leak is found.
This CL modifies the LeakDetector to force immediate crash when an optional commandline argument is specified to content_shell. Usage: $ content_shell --dump-render-tree --enable-leak-detection=crash-on-failure This enables us to use the ClusterFuzz infrastructure to investigate and minimize leaks, as the tool currently detects the test case pass/fail by seeing if the process crashes. BUG=None Review URL: https://codereview.chromium.org/405433011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/common/shell_switches.cc')
-rw-r--r--content/shell/common/shell_switches.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/shell/common/shell_switches.cc b/content/shell/common/shell_switches.cc
index e267cc5..27b6bf1 100644
--- a/content/shell/common/shell_switches.cc
+++ b/content/shell/common/shell_switches.cc
@@ -21,6 +21,10 @@ const char kContentShellDataPath[] = "data-path";
// The directory breakpad should store minidumps in.
const char kCrashDumpsDir[] = "crash-dumps-dir";
+// When specified to "enable-leak-detection" command-line option,
+// causes the leak detector to cause immediate crash when found leak.
+const char kCrashOnFailure[] = "crash-on-failure";
+
// Request pages to be dumped as text once they finished loading.
const char kDumpRenderTree[] = "dump-render-tree";