From 519e002bfc4e342f4decd909a590901eb1623260 Mon Sep 17 00:00:00 2001 From: "nirnimesh@chromium.org" Date: Mon, 7 May 2012 18:48:55 +0000 Subject: Do not remove automation when all browser windows close on ChromeOS and Mac On ChromeOS and Mac, all browser windows closing does not signify app termination. Do not delete AutomationProvider on these platforms. BUG=chromium-os:30536 TEST=power_LoadTest on chromeos R=kkania@chromium.org Review URL: http://codereview.chromium.org/10379023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135679 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/automation/testing_automation_provider.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 82d7d42..4bd3a96 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -278,6 +278,7 @@ void TestingAutomationProvider::OnBrowserAdded(const Browser* browser) { } void TestingAutomationProvider::OnBrowserRemoved(const Browser* browser) { +#if !defined(OS_CHROMEOS) && !defined(OS_MACOSX) // For backwards compatibility with the testing automation interface, we // want the automation provider (and hence the process) to go away when the // last browser goes away. @@ -289,6 +290,7 @@ void TestingAutomationProvider::OnBrowserRemoved(const Browser* browser) { FROM_HERE, base::Bind(&TestingAutomationProvider::OnRemoveProvider, this)); } +#endif // !defined(OS_CHROMEOS) && !defined(OS_MACOSX) } void TestingAutomationProvider::OnSourceProfilesLoaded() { -- cgit v1.1