Skip to content

Commit

Permalink
[Extensions] Update WebstoreInstallerTests to manifest v2
Browse files Browse the repository at this point in the history
Update WebstoreInstallerTests to manifest v2 and remove the allowance
for manifest v1 extensions.

Repackage the crx used in the webstore_inline_install API tests to be
updated to manifest v2.

Bug: 816679
Change-Id: Id38616cf30c70d886542d5b4d8112c8831372863
Reviewed-on: https://chromium-review.googlesource.com/1017582
Reviewed-by: Karan Bhatia <karandeepb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551910}
  • Loading branch information
rdcronin authored and Commit Bot committed Apr 19, 2018
1 parent 77c104a commit 0eb8141
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions chrome/browser/extensions/webstore_installer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ WebstoreInstallerTest::WebstoreInstallerTest(

WebstoreInstallerTest::~WebstoreInstallerTest() {}

bool WebstoreInstallerTest::ShouldAllowLegacyExtensionManifests() {
return true;
}

void WebstoreInstallerTest::SetUpCommandLine(base::CommandLine* command_line) {
ExtensionBrowserTest::SetUpCommandLine(command_line);

Expand Down
1 change: 0 additions & 1 deletion chrome/browser/extensions/webstore_installer_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class WebstoreInstallerTest : public ExtensionBrowserTest {
const std::string& unverified_domain);
~WebstoreInstallerTest() override;

bool ShouldAllowLegacyExtensionManifests() override;
void SetUpCommandLine(base::CommandLine* command_line) override;
void SetUpOnMainThread() override;

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"users": "371,674",
"average_rating": 4.36,
"rating_count": 788,
"manifest": "{\"name\":\"Inline Install Test Extension\",\"version\":\"0.1\",\"icons\":{\"128\":\"icon.png\"},\"permissions\":[\"tabs\"]}"
"manifest": "{\"name\":\"Inline Install Test Extension\",\"version\":\"0.1\",\"manifest_version\":2,\"icons\":{\"128\":\"icon.png\"},\"permissions\":[\"tabs\"]}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"average_rating": 5,
"rating_count": 0,
"verified_site": "app.com",
"manifest": "{\"name\":\"Install Failure Test Extension\",\"version\":\"0.1\"}"
"manifest": "{\"name\":\"Install Failure Test Extension\",\"version\":\"0.1\",\"manifest_version\":2}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"average_rating": 4.36,
"rating_count": 788,
"verified_site": "app.com",
"manifest": "{\"name\":\"Inline Install Test Extension\",\"version\":\"0.1\",\"icons\":{\"128\":\"icon.png\"},\"permissions\":[\"tabs\"]}"
"manifest": "{\"name\":\"Inline Install Test Extension\",\"version\":\"0.1\",\"manifest_version\":2,\"icons\":{\"128\":\"icon.png\"},\"permissions\":[\"tabs\"]}"
}

0 comments on commit 0eb8141

Please sign in to comment.