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

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: Created 8 years, 11 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 1cb0c6b9988f2b8407bca96e6681bbe8b91864e3..3d7ebccedb40b659f4f37790dff1b03eedf41e28 100644
--- a/chrome/browser/net/network_stats.cc
+++ b/chrome/browser/net/network_stats.cc
@@ -533,7 +533,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::GetConnectionState() !=
+ net::NetworkChangeNotifier::NONE);
CR_DEFINE_STATIC_LOCAL(scoped_refptr<base::FieldTrial>, trial, ());
static bool collect_stats = false;

Powered by Google App Engine
This is Rietveld 408576698