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

Unified Diff: content/shell/browser/shell_content_browser_client.cc

Issue 405433011: LeakDetector: Add commandline option to force crash when leak is found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/shell/browser/webkit_test_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_content_browser_client.cc
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
index 560cef1dfa14251596a4f3e23c1e04bf92320947..a178ee0969984a26a570cd9366479426664cd414 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -228,8 +228,12 @@ void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
switches::kCrashDumpsDir));
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableLeakDetection))
- command_line->AppendSwitch(switches::kEnableLeakDetection);
+ switches::kEnableLeakDetection)) {
+ command_line->AppendSwitchASCII(
+ switches::kEnableLeakDetection,
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kEnableLeakDetection));
+ }
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kRegisterFontFiles)) {
command_line->AppendSwitchASCII(
« no previous file with comments | « no previous file | content/shell/browser/webkit_test_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698