| Index: systrace/profile_chrome/agents_unittest.py
|
| diff --git a/systrace/profile_chrome/agents_unittest.py b/systrace/profile_chrome/agents_unittest.py
|
| index 527162cfcf9dab8b3f0e9a46fba65a81f97dfde0..478d229457be11a329a84dc620f0c113da4559f7 100644
|
| --- a/systrace/profile_chrome/agents_unittest.py
|
| +++ b/systrace/profile_chrome/agents_unittest.py
|
| @@ -5,9 +5,9 @@
|
| import unittest
|
|
|
| from profile_chrome import profiler
|
| +from profile_chrome import util
|
|
|
| from devil.android import device_utils
|
| -from devil.android.sdk import intent
|
|
|
|
|
| class BaseAgentTest(unittest.TestCase):
|
| @@ -17,8 +17,6 @@ class BaseAgentTest(unittest.TestCase):
|
| self.package_info = profiler.GetSupportedBrowsers()[self.browser]
|
| self.device = devices[0]
|
|
|
| - self.device.ForceStop(self.package_info.package)
|
| - self.device.StartActivity(
|
| - intent.Intent(activity=self.package_info.activity,
|
| - package=self.package_info.package),
|
| - blocking=True)
|
| + curr_browser = util.GetChromeProcessID(self.device, self.package_info)
|
| + if curr_browser == None:
|
| + util.StartBrowser(self.device, self.package_info)
|
|
|