summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_service_unittest.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-29 01:29:23 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-29 01:29:23 +0000
commit6d60703bcc863062952c5907cddc649cd130c20b (patch)
treea912d631356b4f7ca742fdd73b37bcdcc3ad3a9d /chrome/browser/extensions/extensions_service_unittest.cc
parentdcaed2acafe415af02b4e4c654a5e752c0cdbc04 (diff)
downloadchromium_src-6d60703bcc863062952c5907cddc649cd130c20b.zip
chromium_src-6d60703bcc863062952c5907cddc649cd130c20b.tar.gz
chromium_src-6d60703bcc863062952c5907cddc649cd130c20b.tar.bz2
Enable extensions by default.
BUG=20573 TEST=Install sample extensions without modifying command line flags. They should install (and run on next startup). Review URL: http://codereview.chromium.org/179032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service_unittest.cc')
-rw-r--r--chrome/browser/extensions/extensions_service_unittest.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/extensions/extensions_service_unittest.cc b/chrome/browser/extensions/extensions_service_unittest.cc
index 6df27a9..bcb5ece3 100644
--- a/chrome/browser/extensions/extensions_service_unittest.cc
+++ b/chrome/browser/extensions/extensions_service_unittest.cc
@@ -1534,30 +1534,30 @@ TEST(ExtensionsServiceTestSimple, Enabledness) {
FilePath install_dir = profile.GetPath()
.AppendASCII(ExtensionsService::kInstallDirectoryName);
- // By default, we are disabled.
+ // By default, we are enabled.
command_line.reset(new CommandLine(L""));
service = new ExtensionsService(&profile, command_line.get(),
profile.GetPrefs(), install_dir, &loop, &loop, false);
- EXPECT_FALSE(service->extensions_enabled());
+ EXPECT_TRUE(service->extensions_enabled());
service->Init();
loop.RunAllPending();
EXPECT_TRUE(recorder.ready());
- // If either the command line or pref is set, we are enabled.
+ // If either the command line or pref is set, we are disabled.
recorder.set_ready(false);
- command_line->AppendSwitch(switches::kEnableExtensions);
+ command_line->AppendSwitch(switches::kDisableExtensions);
service = new ExtensionsService(&profile, command_line.get(),
profile.GetPrefs(), install_dir, &loop, &loop, false);
- EXPECT_TRUE(service->extensions_enabled());
+ EXPECT_FALSE(service->extensions_enabled());
service->Init();
loop.RunAllPending();
EXPECT_TRUE(recorder.ready());
recorder.set_ready(false);
- profile.GetPrefs()->SetBoolean(prefs::kEnableExtensions, true);
+ profile.GetPrefs()->SetBoolean(prefs::kDisableExtensions, true);
service = new ExtensionsService(&profile, command_line.get(),
profile.GetPrefs(), install_dir, &loop, &loop, false);
- EXPECT_TRUE(service->extensions_enabled());
+ EXPECT_FALSE(service->extensions_enabled());
service->Init();
loop.RunAllPending();
EXPECT_TRUE(recorder.ready());
@@ -1566,7 +1566,7 @@ TEST(ExtensionsServiceTestSimple, Enabledness) {
command_line.reset(new CommandLine(L""));
service = new ExtensionsService(&profile, command_line.get(),
profile.GetPrefs(), install_dir, &loop, &loop, false);
- EXPECT_TRUE(service->extensions_enabled());
+ EXPECT_FALSE(service->extensions_enabled());
service->Init();
loop.RunAllPending();
EXPECT_TRUE(recorder.ready());