Chromium Code Reviews| Index: components/nacl/browser/nacl_process_host.cc |
| diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc |
| index eae244b46c386212b76cbfae106e5aa38bbad23a..db3c1918b5854f0fbdb4f25c8e71b10f29bdcf8c 100644 |
| --- a/components/nacl/browser/nacl_process_host.cc |
| +++ b/components/nacl/browser/nacl_process_host.cc |
| @@ -341,8 +341,14 @@ void NaClProcessHost::EarlyStartup() { |
| UMA_HISTOGRAM_BOOLEAN( |
| "NaCl.enable-nacl-debug", |
| cmd->HasSwitch(switches::kEnableNaClDebug)); |
| - NaClBrowser::GetDelegate()->SetDebugPatterns( |
| - cmd->GetSwitchValueASCII(switches::kNaClDebugMask)); |
| + std::string nacl_debug_mask = |
| + cmd->GetSwitchValueASCII(switches::kNaClDebugMask); |
| + // By default, exclude debugging SSH and the PNaCl translator. |
| + // about::flags only allows empty flags as the default, so replace |
| + // the empty setting with the default. To debug all apps, use a wild-card. |
| + if (nacl_debug_mask.empty()) |
| + nacl_debug_mask = "!*://*/*ssh_client.nmf,chrome://pnacl-translator/*"; |
|
bradn
2014/03/06 18:56:34
{
}
goto fail :-) ?
jvoung (off chromium)
2014/03/06 19:02:51
Done.
|
| + NaClBrowser::GetDelegate()->SetDebugPatterns(nacl_debug_mask); |
| } |
| void NaClProcessHost::Launch( |