| Index: chrome/browser/ui/hung_plugin_tab_helper.cc
|
| diff --git a/chrome/browser/ui/hung_plugin_tab_helper.cc b/chrome/browser/ui/hung_plugin_tab_helper.cc
|
| index 6e6f96e6fbb35f3da60ded1191d1ff717ab6b7de..fcbcccf6f0d2618167dfb1ca65c407f80bf84ed8 100644
|
| --- a/chrome/browser/ui/hung_plugin_tab_helper.cc
|
| +++ b/chrome/browser/ui/hung_plugin_tab_helper.cc
|
| @@ -65,11 +65,15 @@ class OwnedHandleVector {
|
| DISALLOW_COPY_AND_ASSIGN(OwnedHandleVector);
|
| };
|
|
|
| +void DumpBrowserInBlockingPool() {
|
| + CrashDumpForHangDebugging(::GetCurrentProcess());
|
| +}
|
| +
|
| void DumpRenderersInBlockingPool(OwnedHandleVector* renderer_handles) {
|
| for (std::vector<HANDLE>::const_iterator iter =
|
| renderer_handles->data().begin();
|
| iter != renderer_handles->data().end(); ++iter) {
|
| - CrashDumpIfProcessHandlingPepper(*iter);
|
| + CrashDumpForHangDebugging(*iter);
|
| }
|
| }
|
|
|
| @@ -314,7 +318,10 @@ void HungPluginTabHelper::KillPlugin(int child_id) {
|
| // due to our crash dump uploading restrictions. So we just don't generate
|
| // renderer crash dumps in that case.
|
| if (renderer_handles->data().size() > 0 &&
|
| - renderer_handles->data().size() < 8) {
|
| + renderer_handles->data().size() < 4) {
|
| + content::BrowserThread::PostBlockingPoolSequencedTask(
|
| + kDumpChildProcessesSequenceName, FROM_HERE,
|
| + base::Bind(&DumpBrowserInBlockingPool));
|
| content::BrowserThread::PostBlockingPoolSequencedTask(
|
| kDumpChildProcessesSequenceName, FROM_HERE,
|
| base::Bind(&DumpRenderersInBlockingPool,
|
|
|