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

Unified Diff: chrome_frame/metrics_service.cc

Issue 5845004: Stop upload thread when stopping service. Leaked thread may crash process on... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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: chrome_frame/metrics_service.cc
===================================================================
--- chrome_frame/metrics_service.cc (revision 69412)
+++ chrome_frame/metrics_service.cc (working copy)
@@ -413,6 +413,9 @@
GetInstance()->SetReporting(false);
GetInstance()->SetRecording(false);
+
+ if (GetInstance()->user_permits_upload_)
+ g_metrics_upload_thread_.Get().Stop();
MAD 2010/12/16 19:51:59 Is this in adherence with the following comment ar
Vitaly Buka (NO REVIEWS) 2010/12/16 20:40:36 Done.
mad-corp 2010/12/17 00:36:37 Yeah, now, but what if it changes? And it's not ob
}
void MetricsService::SetRecording(bool enabled) {
« 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