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

Unified Diff: ash/system/chromeos/network/network_state_notifier.cc

Issue 23712002: Cleanup network type matching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Generalized network type matching. Created 7 years, 3 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: ash/system/chromeos/network/network_state_notifier.cc
diff --git a/ash/system/chromeos/network/network_state_notifier.cc b/ash/system/chromeos/network/network_state_notifier.cc
index e9aa016e82917c04f2952a703413d1f6680ad7c5..f54c3e7f06d7761aee44997ab4e2169fbc7c9d4c 100644
--- a/ash/system/chromeos/network/network_state_notifier.cc
+++ b/ash/system/chromeos/network/network_state_notifier.cc
@@ -29,6 +29,7 @@ using chromeos::NetworkConnectionHandler;
using chromeos::NetworkHandler;
using chromeos::NetworkState;
using chromeos::NetworkStateHandler;
+using chromeos::NetworkTypePattern;
namespace {
@@ -138,8 +139,7 @@ void NetworkStateNotifier::UpdateCellularOutOfCredits(
const NetworkState* default_network = handler->DefaultNetwork();
if (default_network && default_network != cellular)
return;
- if (handler->ConnectingNetworkByType(
- NetworkStateHandler::kMatchTypeNonVirtual) ||
+ if (handler->ConnectingNetworkByType(NetworkTypePattern::NonVirtual()) ||
NetworkHandler::Get()->network_connection_handler()
->HasPendingConnectRequest())
return;

Powered by Google App Engine
This is Rietveld 408576698