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

Unified Diff: chrome/browser/profile_resetter/profile_resetter_unittest.cc

Issue 2974033002: Revert of Reenable disabled component extensions with profile resetter.
Patch Set: Created 3 years, 5 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 | « chrome/browser/profile_resetter/profile_resetter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile_resetter/profile_resetter_unittest.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter_unittest.cc b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
index 5bbfd4a6f71934b4e9e165bae1c95813e99d26ba..017f4696e3a2969418839656407f0fef831d28a5 100644
--- a/chrome/browser/profile_resetter/profile_resetter_unittest.cc
+++ b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
@@ -689,29 +689,6 @@
EXPECT_TRUE(theme_service->UsingDefaultTheme());
}
-TEST_F(ProfileResetterTest, ResetExtensionsByReenablingExternalComponents) {
- service_->Init();
-
- base::ScopedTempDir temp_dir;
- ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
-
- scoped_refptr<Extension> ext =
- CreateExtension(base::ASCIIToUTF16("example"),
- base::FilePath(FILE_PATH_LITERAL("//nonexistent")),
- Manifest::EXTERNAL_COMPONENT,
- extensions::Manifest::TYPE_EXTENSION, false);
- service_->AddExtension(ext.get());
-
- service_->DisableExtension(ext->id(),
- extensions::Extension::DISABLE_USER_ACTION);
- EXPECT_FALSE(registry()->enabled_extensions().Contains(ext->id()));
- EXPECT_TRUE(registry()->disabled_extensions().Contains(ext->id()));
-
- ResetAndWait(ProfileResetter::EXTENSIONS);
- EXPECT_TRUE(registry()->enabled_extensions().Contains(ext->id()));
- EXPECT_FALSE(registry()->disabled_extensions().Contains(ext->id()));
-}
-
TEST_F(ProfileResetterTest, ResetStartPageNonOrganic) {
PrefService* prefs = profile()->GetPrefs();
DCHECK(prefs);
« no previous file with comments | « chrome/browser/profile_resetter/profile_resetter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698