summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-07 18:48:55 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-07 18:48:55 +0000
commit519e002bfc4e342f4decd909a590901eb1623260 (patch)
treeff5b9d2bd26945766bc81c64a12b9841a764e2b9
parentdcd13eef0b842081714606999ec5efef1ae68dd9 (diff)
downloadchromium_src-519e002bfc4e342f4decd909a590901eb1623260.zip
chromium_src-519e002bfc4e342f4decd909a590901eb1623260.tar.gz
chromium_src-519e002bfc4e342f4decd909a590901eb1623260.tar.bz2
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
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc2
1 files changed, 2 insertions, 0 deletions
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() {