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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 6515016: Restart named testing channel on disconnect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Permissions fixes and cleanup. Created 9 years, 10 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
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..4d4d4d783b7147c3cf8fae453ee238a279932dad 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 (!reconnect_on_channel_error_ &&
+ browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID)
BrowserList::CloseAllBrowsersAndExit();
AutomationProvider::OnChannelError();
}

Powered by Google App Engine
This is Rietveld 408576698