Chromium Code Reviews| Index: chrome/browser/metrics/tracking_synchronizer.cc |
| =================================================================== |
| --- chrome/browser/metrics/tracking_synchronizer.cc (revision 140625) |
| +++ 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; |
|
jar (doing other things)
2012/07/09 23:04:12
nit: It would be nice to get this to use fewer lin
ramant (doing other things)
2012/07/11 23:52:54
jar and I had talked. Defining typedef results in
|
| // TrackingSynchronizer methods and members. |