Commit 36376da4 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions] Update background application list model test to use manifest v2

Update background_application_list_model_unittest.cc to generate
extensions with manifest_version 2.

Bug: 816679
Change-Id: Icb245afea008fb2bdf57ae20e7289539aa39724e
Reviewed-on: https://chromium-review.googlesource.com/1008605
Commit-Queue: Drew Wilson <atwilson@chromium.org>
Reviewed-by: default avatarDrew Wilson <atwilson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550142}
parent 6a15a6c4
...@@ -88,6 +88,7 @@ static scoped_refptr<Extension> CreateExtension( ...@@ -88,6 +88,7 @@ static scoped_refptr<Extension> CreateExtension(
bool background_permission) { bool background_permission) {
base::DictionaryValue manifest; base::DictionaryValue manifest;
manifest.SetString(extensions::manifest_keys::kVersion, "1.0.0.0"); manifest.SetString(extensions::manifest_keys::kVersion, "1.0.0.0");
manifest.SetInteger(extensions::manifest_keys::kManifestVersion, 2);
manifest.SetString(extensions::manifest_keys::kName, name); manifest.SetString(extensions::manifest_keys::kName, name);
auto permissions = std::make_unique<base::ListValue>(); auto permissions = std::make_unique<base::ListValue>();
if (background_permission) { if (background_permission) {
......
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