| Index: chrome/browser/automation/testing_automation_provider.cc
|
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
|
| index 8278cc6eb6be9e1de77a835786b370188d46aefc..64ee9fe63bb8db1aecb3b1bcd34f65a489e3b511 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -406,7 +406,8 @@ bool TestingAutomationProvider::OnMessageReceived(
|
| }
|
|
|
| void TestingAutomationProvider::OnChannelError() {
|
| - if (browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID)
|
| + if (!reinitialize_on_channel_error_ &&
|
| + browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID)
|
| BrowserList::CloseAllBrowsersAndExit();
|
| AutomationProvider::OnChannelError();
|
| }
|
|
|