diff options
| author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 15:10:50 +0000 |
|---|---|---|
| committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 15:10:50 +0000 |
| commit | 24f413c12946b59b6b1a6c9147b1a7980c16ae6e (patch) | |
| tree | de7facb10b5c9a896d80ce56683ab72df5fd5163 /chrome/browser/extensions/extensions_service_unittest.cc | |
| parent | 55126134af52fe0f6a426f0f7ccfeeb8cf2c9f28 (diff) | |
| download | chromium_src-24f413c12946b59b6b1a6c9147b1a7980c16ae6e.zip chromium_src-24f413c12946b59b6b1a6c9147b1a7980c16ae6e.tar.gz chromium_src-24f413c12946b59b6b1a6c9147b1a7980c16ae6e.tar.bz2 | |
Revert 56683 - When extension is blacklisted by admin policy, it should be removed if already running.
BUG=51689
TEST=ExtensionsServiceTest.BlacklistedByPolicyRemovedIfRunning
Review URL: http://codereview.chromium.org/3161020
TBR=finnur@chromium.org
Review URL: http://codereview.chromium.org/3163025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service_unittest.cc')
| -rw-r--r-- | chrome/browser/extensions/extensions_service_unittest.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/chrome/browser/extensions/extensions_service_unittest.cc b/chrome/browser/extensions/extensions_service_unittest.cc index 20421cf..b8c176b 100644 --- a/chrome/browser/extensions/extensions_service_unittest.cc +++ b/chrome/browser/extensions/extensions_service_unittest.cc @@ -1772,35 +1772,6 @@ TEST_F(ExtensionsServiceTest, BlacklistedByPolicyWillNotInstall) { EXPECT_EQ(1u, service_->extensions()->size()); } -// Extension blacklisted by policy get unloaded after installing. -TEST_F(ExtensionsServiceTest, BlacklistedByPolicyRemovedIfRunning) { - InitializeEmptyExtensionsService(); - - // Install good_crx. - FilePath extensions_path; - ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &extensions_path)); - extensions_path = extensions_path.AppendASCII("extensions"); - FilePath path = extensions_path.AppendASCII("good.crx"); - service_->InstallExtension(path); - loop_.RunAllPending(); - EXPECT_EQ(1u, service_->extensions()->size()); - - ListValue* blacklist = prefs_->GetMutableList("extensions.install.denylist"); - ASSERT_TRUE(blacklist != NULL); - - // Blacklist this extension. - blacklist->Append(Value::CreateStringValue(good_crx)); - prefs_->ScheduleSavePersistentPrefs(); - - // Programmatically appending to the prefs doesn't seem to notify the - // observers... :/ - prefs_->pref_notifier()->FireObservers("extensions.install.denylist"); - - // Extension should not be running now. - loop_.RunAllPending(); - EXPECT_EQ(0u, service_->extensions()->size()); -} - // Tests disabling extensions TEST_F(ExtensionsServiceTest, DisableExtension) { InitializeEmptyExtensionsService(); |
