Commit dead999a authored by stevenjb@chromium.org's avatar stevenjb@chromium.org

Do not enable network technology if not available

We currently set a technology to 'enabling' even if it is not available.
We also enable / disable both Cellular and Wimax on the same UI element
since both are never expected to be available.
Simple fix is to ignore technologies that are not available.

BUG=368754

Review URL: https://codereview.chromium.org/336313002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277856 0039d316-1c4b-4281-b951-d872f2087c98
parent bf94f9d2
......@@ -124,6 +124,8 @@ void NetworkStateHandler::SetTechnologyEnabled(
it != technologies.end(); ++it) {
std::string* technology = *it;
DCHECK(technology);
if (!shill_property_handler_->IsTechnologyAvailable(*technology))
continue;
NET_LOG_USER("SetTechnologyEnabled",
base::StringPrintf("%s:%d", technology->c_str(), enabled));
shill_property_handler_->SetTechnologyEnabled(
......
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