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

Unified Diff: telemetry/telemetry/internal/browser/browser.py

Issue 2623423005: [tracing] Avoid flushing system cache when not supported (Closed)
Patch Set: add warning Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/browser/browser.py
diff --git a/telemetry/telemetry/internal/browser/browser.py b/telemetry/telemetry/internal/browser/browser.py
index 139325b11f025c578719646c4d87417da9916379..2d40e64ea7a3239cc34f808675dd8688caf36396 100644
--- a/telemetry/telemetry/internal/browser/browser.py
+++ b/telemetry/telemetry/internal/browser/browser.py
@@ -48,8 +48,11 @@ class Browser(app.App):
self._browser_backend.profile_directory)
self.platform.FlushSystemCacheForDirectory(
self._browser_backend.browser_directory)
- else:
+ elif self.platform.SupportFlushEntireSystemCache():
self.platform.FlushEntireSystemCache()
+ else:
+ logging.warning('Flush system cache is not supported. ' +
+ 'Did not flush system cache.')
self._browser_backend.SetBrowser(self)
self._browser_backend.Start()
« 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