Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Side by Side Diff: telemetry/telemetry/internal/backends/chrome/android_browser_backend.py

Issue 3018503002: Fix telemetry's IsBrowserRunning check (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 import subprocess 6 import subprocess
7 7
8 from telemetry.core import exceptions 8 from telemetry.core import exceptions
9 from telemetry.internal.platform import android_platform_backend as \ 9 from telemetry.internal.platform import android_platform_backend as \
10 android_platform_backend_module 10 android_platform_backend_module
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 self._StopBrowser() 261 self._StopBrowser()
262 262
263 self.platform_backend.StopForwardingHost(self._port) 263 self.platform_backend.StopForwardingHost(self._port)
264 264
265 if self._output_profile_path: 265 if self._output_profile_path:
266 self.platform_backend.PullProfile( 266 self.platform_backend.PullProfile(
267 self._backend_settings.package, self._output_profile_path) 267 self._backend_settings.package, self._output_profile_path)
268 268
269 def IsBrowserRunning(self): 269 def IsBrowserRunning(self):
270 return self.platform_backend.IsAppRunning(self._backend_settings.package) 270 return self.platform_backend.IsAppRunning(
271 '%s$' % (self._backend_settings.package))
perezju 2017/09/19 12:57:01 I don't think this will work. The process name is
bokan 2017/09/25 19:53:32 D'oh! Sorry, you're right, I missed what `-F` does
271 272
272 def GetStandardOutput(self): 273 def GetStandardOutput(self):
273 return self.platform_backend.GetStandardOutput() 274 return self.platform_backend.GetStandardOutput()
274 275
275 def GetStackTrace(self): 276 def GetStackTrace(self):
276 return self.platform_backend.GetStackTrace() 277 return self.platform_backend.GetStackTrace()
277 278
278 def GetMostRecentMinidumpPath(self): 279 def GetMostRecentMinidumpPath(self):
279 return None 280 return None
280 281
281 def GetAllMinidumpPaths(self): 282 def GetAllMinidumpPaths(self):
282 return None 283 return None
283 284
284 def GetAllUnsymbolizedMinidumpPaths(self): 285 def GetAllUnsymbolizedMinidumpPaths(self):
285 return None 286 return None
286 287
287 def SymbolizeMinidump(self, minidump_path): 288 def SymbolizeMinidump(self, minidump_path):
288 return None 289 return None
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698