Delete temporary profile files for Opera as well as Firefox.
Review URL: https://codereview.chromium.org//11137007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13640 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/utils/compiler/buildbot.py b/utils/compiler/buildbot.py
index cee9ce3..a66d6b0 100644
--- a/utils/compiler/buildbot.py
+++ b/utils/compiler/buildbot.py
@@ -296,7 +296,7 @@
 
   return 0
 
-def _DeleteFirefoxProfiles(directory):
+def _DeleteTempWebdriverProfiles(directory):
   """Find all the firefox profiles in a particular directory and delete them."""
   for f in os.listdir(directory):
     item = os.path.join(directory, f)
@@ -324,12 +324,12 @@
   if system == 'win7':
     shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp',
         ignore_errors=True)
-  elif browser == 'ff':
+  elif browser == 'ff' or 'opera':
     # Note: the buildbots run as root, so we can do this without requiring a
     # password. The command won't actually work on regular machines without
     # root permissions.
-    _DeleteFirefoxProfiles('/tmp')
-    _DeleteFirefoxProfiles('/var/tmp')
+    _DeleteTempWebdriverProfiles('/tmp')
+    _DeleteTempWebdriverProfiles('/var/tmp')
 
 def ClobberBuilder(mode):
   """ Clobber the builder before we do the build.