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

Unified Diff: chromecast/browser/metrics/external_metrics.h

Issue 845003002: [chromecast] ExternalMetrics has to destroy itself in file thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chromecast/browser/metrics/external_metrics.h
diff --git a/chromecast/browser/metrics/external_metrics.h b/chromecast/browser/metrics/external_metrics.h
index 47c74f3eebe26181148211fa67e87f84d529dee1..2d078cb4a1b5a1e9b2b7d87cd2075389486d7641 100644
--- a/chromecast/browser/metrics/external_metrics.h
+++ b/chromecast/browser/metrics/external_metrics.h
@@ -30,6 +30,9 @@ class ExternalMetrics {
// File thread but are executed in the UI thread.
void Start();
+ // Destroys itself in appropriate thread.
+ void StopAndSelfDestroy();
gunsch 2015/01/10 00:31:46 "SelfDestroy" is sort of strange, why not just "St
gfhuang 2015/01/10 00:58:30 Done.
+
private:
// The max length of a message (name-value pair, plus header)
static const int kMetricsMessageMaxLength = 1024; // be generous

Powered by Google App Engine
This is Rietveld 408576698