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

Unified Diff: chrome/browser/net/network_stats.cc

Issue 8590003: chrome: Remove 11 exit time destructors and 4 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: chrome/browser/net/network_stats.cc
diff --git a/chrome/browser/net/network_stats.cc b/chrome/browser/net/network_stats.cc
index 1892a4e11bf88b71e72e05e19b5f78a8fb19b4f6..7019a9563790fb12349b3e6933a511d45f992960 100644
--- a/chrome/browser/net/network_stats.cc
+++ b/chrome/browser/net/network_stats.cc
@@ -539,7 +539,7 @@ void CollectNetworkStats(const std::string& network_stats_server,
// to the server has succeeded.
DCHECK(!net::NetworkChangeNotifier::IsOffline());
- static scoped_refptr<base::FieldTrial> trial = NULL;
+ CR_DEFINE_STATIC_LOCAL(scoped_refptr<base::FieldTrial>, trial, (NULL));
Mark Mentovai 2011/11/16 22:54:24 You can use () instead of (NULL) here.
Nico 2011/11/16 22:59:20 Done.
static bool collect_stats = false;
if (!trial.get()) {

Powered by Google App Engine
This is Rietveld 408576698