summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/testing_automation_provider.cc
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 21:12:57 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 21:12:57 +0000
commitbc63a07355d1e7f57aaad72ef2b2b8359637c55d (patch)
treeff5fbfa2e0d8586a692268be18a60e1827c21179 /chrome/browser/automation/testing_automation_provider.cc
parent4c79b45fb6ebeebf308e2286811a714ac1c2fc07 (diff)
downloadchromium_src-bc63a07355d1e7f57aaad72ef2b2b8359637c55d.zip
chromium_src-bc63a07355d1e7f57aaad72ef2b2b8359637c55d.tar.gz
chromium_src-bc63a07355d1e7f57aaad72ef2b2b8359637c55d.tar.bz2
Don't set exit_cleanly bit early if shutdown can be canceled.
Cleanups: Added Browser::Restart. Moved code around to reduce if/defs. Updated the comment of APP_EXITING to emphasize the difference from APP_TERMINATING. Review URL: http://codereview.chromium.org/7129027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/testing_automation_provider.cc')
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index ab18793..71964bd 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -431,7 +431,7 @@ bool TestingAutomationProvider::OnMessageReceived(
void TestingAutomationProvider::OnChannelError() {
if (!reinitialize_on_channel_error_ &&
browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID)
- BrowserList::CloseAllBrowsersAndExit();
+ BrowserList::AttemptExit();
AutomationProvider::OnChannelError();
}