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

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

Issue 2919683002: Treat tethered networks as mobile networks (Closed)
Patch Set: 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..1b4dd18309f3f69bf75ef44c30a6a5f3353effda 100644
--- a/chrome/browser/ui/webui/settings/about_handler.cc
+++ b/chrome/browser/ui/webui/settings/about_handler.cc
@@ -103,8 +103,10 @@ 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 =
+ network && network->IsConnectedState() &&
+ (network->type() == shill::kTypeCellular ||
+ network->tethering_state() == shill::kTetheringConfirmedState);
if (help_utils_chromeos::IsUpdateOverCellularAllowed(
true /* interactive */)) {

Powered by Google App Engine
This is Rietveld 408576698