Commit 2a6daf31 authored by Nicholas Verne's avatar Nicholas Verne Committed by Commit Bot

Fix Crash in IsInternalPluginAvailableForMimeType

by removing incorrect vector sizing

Tbr: jam@chromium.org
Bug: 784517
Change-Id: I12d2cd40e4aec712827b02346270c36bc4711797
Reviewed-on: https://chromium-review.googlesource.com/767599Reviewed-by: 's avatarSam McNally <sammc@chromium.org>
Commit-Queue: Nicholas Verne <nverne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516122}
parent 2465a549
......@@ -299,8 +299,7 @@ void PluginInfoHostImpl::IsInternalPluginAvailableForMimeType(
is_plugin_disabled = true;
break;
}
std::vector<chrome::mojom::PluginParamPtr> params(
mime_types[j].additional_params.size());
std::vector<chrome::mojom::PluginParamPtr> params;
for (const auto& p : mime_types[j].additional_params) {
params.emplace_back(chrome::mojom::PluginParam::New(p.name, p.value));
}
......
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