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

Unified Diff: chrome/browser/chromeos/extensions/info_private_api.cc

Issue 23712002: Cleanup network type matching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit test in Debug. 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
« no previous file with comments | « ash/system/chromeos/network/tray_vpn.cc ('k') | chrome/browser/chromeos/login/auth_prewarmer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/info_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/info_private_api.cc b/chrome/browser/chromeos/extensions/info_private_api.cc
index 0a7f067cd402a3547613f728391012811e7b8fd7..7f31d3b14afa8e7a80ce271606fee0b7aa3d7fad 100644
--- a/chrome/browser/chromeos/extensions/info_private_api.cc
+++ b/chrome/browser/chromeos/extensions/info_private_api.cc
@@ -11,6 +11,7 @@
#include "chromeos/network/device_state.h"
#include "chromeos/network/network_handler.h"
#include "chromeos/network/network_state_handler.h"
+#include "chromeos/network/shill_property_util.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
using chromeos::NetworkHandler;
@@ -69,7 +70,7 @@ base::Value* ChromeosInfoPrivateGetFunction::GetValue(
} else if (property_name == kPropertyHomeProvider) {
const chromeos::DeviceState* cellular_device =
NetworkHandler::Get()->network_state_handler()->GetDeviceStateByType(
- flimflam::kTypeCellular);
+ chromeos::NetworkTypePattern::Cellular());
std::string home_provider_id;
if (cellular_device)
home_provider_id = cellular_device->home_provider_id();
« no previous file with comments | « ash/system/chromeos/network/tray_vpn.cc ('k') | chrome/browser/chromeos/login/auth_prewarmer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698