Commit dae58f92 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions] Update ComponentLoaderTests to manifest v2

ComponentLoaderTests have been updated to manifest v2.
Remove the allowance for manifest v1 extensions.

Bug: 816679

Change-Id: Ic35a4f11840ea2194b16f93eb541aa62e8cd7361
Reviewed-on: https://chromium-review.googlesource.com/1025134Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553220}
parent 22ec18cd
...@@ -91,9 +91,6 @@ class ComponentLoaderTest : public testing::Test { ...@@ -91,9 +91,6 @@ class ComponentLoaderTest : public testing::Test {
} }
void SetUp() override { void SetUp() override {
// TODO(devlin): Remove this. See https://crbug.com/816679.
allow_legacy_extensions_ = Extension::allow_legacy_extensions_for_testing();
extension_path_ = extension_path_ =
GetBasePath().AppendASCII("good") GetBasePath().AppendASCII("good")
.AppendASCII("Extensions") .AppendASCII("Extensions")
...@@ -119,7 +116,6 @@ class ComponentLoaderTest : public testing::Test { ...@@ -119,7 +116,6 @@ class ComponentLoaderTest : public testing::Test {
sync_preferences::TestingPrefServiceSyncable prefs_; sync_preferences::TestingPrefServiceSyncable prefs_;
TestingPrefServiceSimple local_state_; TestingPrefServiceSimple local_state_;
ComponentLoader component_loader_; ComponentLoader component_loader_;
Extension::ScopedAllowLegacyExtensions allow_legacy_extensions_;
// The root directory of the text extension. // The root directory of the text extension.
base::FilePath extension_path_; base::FilePath extension_path_;
......
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