Commit aec31ddd authored by Regan Hsu's avatar Regan Hsu Committed by Commit Bot

[CrOS Settings] Do not show Cellular on search results if cellular off

This fixes a crash that occurs when users search for cellular search
results when Mobile data is toggled off.

This is a follow up to
https://chromium-review.googlesource.com/c/chromium/src/+/2334402.

Bug: 1110200
Change-Id: Ie2370d4b2143513c239df0516463ab3a8c32b990
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335394
Commit-Queue: Regan Hsu <hsuregan@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794187}
parent 25209d74
...@@ -880,7 +880,7 @@ void InternetSection::OnDeviceList( ...@@ -880,7 +880,7 @@ void InternetSection::OnDeviceList(
void InternetSection::FetchNetworkList() { void InternetSection::FetchNetworkList() {
cros_network_config_->GetNetworkStateList( cros_network_config_->GetNetworkStateList(
network_config::mojom::NetworkFilter::New( network_config::mojom::NetworkFilter::New(
network_config::mojom::FilterType::kAll, network_config::mojom::FilterType::kVisible,
network_config::mojom::NetworkType::kAll, network_config::mojom::NetworkType::kAll,
network_config::mojom::kNoLimit), network_config::mojom::kNoLimit),
base::Bind(&InternetSection::OnNetworkList, base::Unretained(this))); base::Bind(&InternetSection::OnNetworkList, base::Unretained(this)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment