Commit 2020e31b authored by stevenjb's avatar stevenjb Committed by Commit bot

Fix crash in NetworkingPrivateGetEnabledNetworkTypesFunction

Simple crash fix.

BUG=417381

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

Cr-Commit-Position: refs/heads/master@{#296528}
parent 029701e5
......@@ -287,7 +287,7 @@ bool NetworkingPrivateGetEnabledNetworkTypesFunction::RunSync() {
error_ = networking_private::kErrorNotSupported;
return false;
}
scoped_ptr<base::ListValue> enabled_networks_list;
scoped_ptr<base::ListValue> enabled_networks_list(new base::ListValue);
for (base::ListValue::iterator iter = enabled_networks_onc_types->begin();
iter != enabled_networks_onc_types->end(); ++iter) {
std::string type;
......
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