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

Unified Diff: chrome/browser/metrics/tracking_synchronizer.cc

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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: chrome/browser/metrics/tracking_synchronizer.cc
===================================================================
--- chrome/browser/metrics/tracking_synchronizer.cc (revision 146279)
+++ chrome/browser/metrics/tracking_synchronizer.cc (working copy)
@@ -86,7 +86,6 @@
RequestContext::Unregister(sequence_number_);
}
-
// Register |callback_object| in |outstanding_requests_| map for the given
// |sequence_number|.
static RequestContext* Register(
@@ -116,7 +115,7 @@
return request;
}
- // Delete the entry for the given sequence_number| from
+ // Delete the entry for the given |sequence_number| from
// |outstanding_requests_| map. This method is called when all changes have
// been acquired, or when the wait time expires (whichever is sooner).
static void Unregister(int sequence_number) {
@@ -144,7 +143,6 @@
unresponsive_processes);
}
-
// Delete all the entries in |outstanding_requests_| map.
static void OnShutdown() {
// Just in case we have any pending tasks, clear them out.
@@ -171,13 +169,14 @@
// Map of all outstanding RequestContexts, from sequence_number_ to
// RequestContext.
- static base::LazyInstance<RequestContextMap> outstanding_requests_;
+ static base::LazyInstance<RequestContextMap>::Leaky outstanding_requests_;
};
// static
-base::LazyInstance<TrackingSynchronizer::RequestContext::RequestContextMap>
- TrackingSynchronizer::RequestContext::outstanding_requests_ =
- LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance
+ <TrackingSynchronizer::RequestContext::RequestContextMap>::Leaky
+ TrackingSynchronizer::RequestContext::outstanding_requests_ =
+ LAZY_INSTANCE_INITIALIZER;
// TrackingSynchronizer methods and members.
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698