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

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

Issue 9147026: API for connection type (Ethernet/WIFI/WWAN ...) in NetworkChangeNotifier. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: sync Created 8 years, 7 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: chrome/browser/net/network_stats.cc
diff --git a/chrome/browser/net/network_stats.cc b/chrome/browser/net/network_stats.cc
index 64023a4c3d708b0ff67635680c89dda12d6d6029..1283d6791a2e68ddb44ea13c17d230f8a653c9b1 100644
--- a/chrome/browser/net/network_stats.cc
+++ b/chrome/browser/net/network_stats.cc
@@ -804,7 +804,8 @@ void CollectNetworkStats(const std::string& network_stats_server,
// Check that there is a network connection. We get called only if UMA upload
// to the server has succeeded.
- DCHECK(!net::NetworkChangeNotifier::IsOffline());
+ DCHECK(net::NetworkChangeNotifier::GetConnectionType() !=
wtc 2012/05/11 01:35:05 Nit: use DCHECK_NE
+ net::NetworkChangeNotifier::CONNECTION_NONE);
CR_DEFINE_STATIC_LOCAL(scoped_refptr<base::FieldTrial>, trial, ());
static bool collect_stats = false;

Powered by Google App Engine
This is Rietveld 408576698