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

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: Changes per nirnimesh's comments. 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
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698