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

Unified Diff: content/browser/net/url_request_slow_download_job.h

Issue 8493016: content: Remove 16 exit time destructors and 15 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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: content/browser/net/url_request_slow_download_job.h
diff --git a/content/browser/net/url_request_slow_download_job.h b/content/browser/net/url_request_slow_download_job.h
index 3f0d40f7ff68587a4d9eb3a8248adf09a9f096ef..385e7b3936952994a537346867f29e5ffdd51656 100644
--- a/content/browser/net/url_request_slow_download_job.h
+++ b/content/browser/net/url_request_slow_download_job.h
@@ -13,6 +13,7 @@
#include <set>
#include <string>
+#include "base/lazy_instance.h"
#include "base/task.h"
#include "content/common/content_export.h"
#include "net/url_request/url_request_job.h"
@@ -57,7 +58,10 @@ class URLRequestSlowDownloadJob : public net::URLRequestJob {
// Mark all pending requests to be finished. We keep track of pending
// requests in |pending_requests_|.
static void FinishPendingRequests();
- static std::set<URLRequestSlowDownloadJob*> pending_requests_;
+ typedef std::set<URLRequestSlowDownloadJob*> SlowJobsSet;
+ static base::LazyInstance<SlowJobsSet,
Mark Mentovai 2011/11/07 22:34:15 private + static again.
Nico 2011/11/07 23:29:21 Since the comment for FinishPendingRequests() refe
+ base::LeakyLazyInstanceTraits<SlowJobsSet> >
+ pending_requests_;
void StartAsync();

Powered by Google App Engine
This is Rietveld 408576698