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

Unified Diff: net/base/connection_type_histograms.cc

Issue 6624023: Skip generation of stats, since code is now shared across threads (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/connection_type_histograms.cc
===================================================================
--- net/base/connection_type_histograms.cc (revision 76254)
+++ net/base/connection_type_histograms.cc (working copy)
@@ -5,6 +5,7 @@
#include "net/base/connection_type_histograms.h"
#include "base/metrics/histogram.h"
+#include "content/browser/browser_thread.h"
namespace net {
@@ -22,6 +23,7 @@
// expansion.
void UpdateConnectionTypeHistograms(ConnectionType type) {
static bool had_connection_type[NUM_OF_CONNECTION_TYPES];
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
willchan no longer on Chromium 2011/03/04 19:15:34 Unfortunately, net/ is not aware of browser stuff.
if (type >= 0 && type < NUM_OF_CONNECTION_TYPES) {
if (!had_connection_type[type]) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698