Commit f699c2f8 authored by Daniel Cheng's avatar Daniel Cheng Committed by Commit Bot

Initialize the return value of NetworkingPrivateServiceClient::GetEnabledNetworkTypes

Otherwise, appending a string will simply crash.

Bug: 805881
Change-Id: I9a8893c3cafcc41d5d1df55394f8bc07925e8ba5
Reviewed-on: https://chromium-review.googlesource.com/900056Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534450}
parent 75832eec
......@@ -4,6 +4,7 @@
#include "extensions/browser/api/networking_private/networking_private_service_client.h"
#include <memory>
#include <utility>
#include "base/base64.h"
......@@ -347,7 +348,7 @@ void NetworkingPrivateServiceClient::SelectCellularMobileNetwork(
std::unique_ptr<base::ListValue>
NetworkingPrivateServiceClient::GetEnabledNetworkTypes() {
std::unique_ptr<base::ListValue> network_list;
auto network_list = std::make_unique<base::ListValue>();
network_list->AppendString(::onc::network_type::kWiFi);
return network_list;
}
......
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