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

Unified Diff: chrome_frame/metrics_service.h

Issue 5519007: Fix a race in the ChromeFrame metrics service start up code. This race could ... (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 | chrome_frame/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/metrics_service.h
===================================================================
--- chrome_frame/metrics_service.h (revision 68089)
+++ chrome_frame/metrics_service.h (working copy)
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/lazy_instance.h"
+#include "base/lock.h"
#include "base/metrics/histogram.h"
#include "base/platform_thread.h"
#include "base/scoped_ptr.h"
@@ -146,8 +147,10 @@
// The transmission timer id returned by SetTimer
int transmission_timer_id_;
+ // Used to serialize the Start and Stop operations on the metrics service.
+ static Lock metrics_service_lock_;
+
DISALLOW_COPY_AND_ASSIGN(MetricsService);
};
#endif // CHROME_FRAME_METRICS_METRICS_SERVICE_H_
-
« no previous file with comments | « no previous file | chrome_frame/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698