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

Unified Diff: net/socket/client_socket_pool_histograms.h

Issue 6780035: Use lock-free lazy initialization for static histogram references (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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: net/socket/client_socket_pool_histograms.h
===================================================================
--- net/socket/client_socket_pool_histograms.h (revision 80220)
+++ net/socket/client_socket_pool_histograms.h (working copy)
@@ -28,10 +28,10 @@
void AddReusedIdleTime(base::TimeDelta time) const;
private:
- scoped_refptr<base::Histogram> socket_type_;
- scoped_refptr<base::Histogram> request_time_;
- scoped_refptr<base::Histogram> unused_idle_time_;
- scoped_refptr<base::Histogram> reused_idle_time_;
+ base::Histogram* socket_type_;
+ base::Histogram* request_time_;
+ base::Histogram* unused_idle_time_;
+ base::Histogram* reused_idle_time_;
bool is_http_proxy_connection_;
bool is_socks_connection_;

Powered by Google App Engine
This is Rietveld 408576698