Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1167)

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 2409743002: Fix force policy installation of the removed pref-installed extension (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/pending_extension_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service_unittest.cc
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 43baccea70957ca4cbdf16287ef4bc42c4812bf5..b1eb1f5623a0c74dc930563ae5c16e01ba2d49d0 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -1234,6 +1234,17 @@ TEST_F(ExtensionServiceTest, UninstallingExternalExtensions) {
Extension::NO_FLAGS,
false));
+ // Installation of the same extension through the policy should be successful.
+ ASSERT_TRUE(service()->pending_extension_manager()->AddFromExternalUpdateUrl(
+ good_crx,
+ std::string(),
+ GURL("http:://fake.update/url"),
+ Manifest::EXTERNAL_POLICY_DOWNLOAD,
+ Extension::NO_FLAGS,
+ false));
+ EXPECT_TRUE(service()->pending_extension_manager()->IsIdPending(good_crx));
+ EXPECT_TRUE(service()->pending_extension_manager()->Remove(good_crx));
+
ASSERT_FALSE(service()->pending_extension_manager()->IsIdPending(good_crx));
}
« no previous file with comments | « no previous file | chrome/browser/extensions/pending_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698