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

Unified Diff: chrome/browser/ui/webui/settings/about_handler.cc

Issue 2919683002: Treat tethered networks as mobile networks (Closed)
Patch Set: Clean up code Created 3 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/ui/webui/settings/about_handler.cc
diff --git a/chrome/browser/ui/webui/settings/about_handler.cc b/chrome/browser/ui/webui/settings/about_handler.cc
index bad234e3187288a8aa033d9c9d2d8b46c7071817..15c75feb60ad02a196e35c53779e476374b9c334 100644
--- a/chrome/browser/ui/webui/settings/about_handler.cc
+++ b/chrome/browser/ui/webui/settings/about_handler.cc
@@ -103,8 +103,8 @@ base::string16 GetAllowedConnectionTypesMessage() {
const chromeos::NetworkState* network = chromeos::NetworkHandler::Get()
->network_state_handler()
->DefaultNetwork();
- const bool cellular = network && network->IsConnectedState() &&
- network->type() == shill::kTypeCellular;
+ const bool cellular =
stevenjb 2017/06/01 20:03:00 nit: we should rename this mobile_data. (We can le
weidongg 2017/06/01 20:41:00 Done.
+ network && network->IsConnectedState() && network->IsUsingMobileData();
if (help_utils_chromeos::IsUpdateOverCellularAllowed(
true /* interactive */)) {

Powered by Google App Engine
This is Rietveld 408576698