summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 22:38:36 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 22:38:36 +0000
commitfaed6e1304f7ba31ed12d42ea3dc694021690afd (patch)
treeb8d3b1b48fe1e3b5d65cd6a7b7a3f6c4348c9086 /chrome/browser/profile.cc
parentdb5c20877a4159a01019d183e135e1d713421c09 (diff)
downloadchromium_src-faed6e1304f7ba31ed12d42ea3dc694021690afd.zip
chromium_src-faed6e1304f7ba31ed12d42ea3dc694021690afd.tar.gz
chromium_src-faed6e1304f7ba31ed12d42ea3dc694021690afd.tar.bz2
Remove --enable-user-script and associated tests.
This doesn't remove the underlying support from UserScriptMaster; that is a riskier change. BUG=27520 Review URL: http://codereview.chromium.org/418043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc23
1 files changed, 5 insertions, 18 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index a60b7fc..90069dd 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -147,7 +147,6 @@ void Profile::RegisterUserPrefs(PrefService* prefs) {
IDS_SPELLCHECK_DICTIONARY);
prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, true);
prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, true);
- prefs->RegisterBooleanPref(prefs::kEnableUserScripts, false);
#if defined(OS_LINUX)
prefs->RegisterBooleanPref(prefs::kUsesSystemTheme, false);
#endif
@@ -661,25 +660,13 @@ void ProfileImpl::InitExtensions() {
return; // Already initialized.
const CommandLine* command_line = CommandLine::ForCurrentProcess();
- PrefService* prefs = GetPrefs();
- bool user_scripts_enabled =
- command_line->HasSwitch(switches::kEnableUserScripts) ||
- prefs->GetBoolean(prefs::kEnableUserScripts);
-
- FilePath script_dir;
- if (user_scripts_enabled) {
- if (command_line->HasSwitch(switches::kUserScriptsDir)) {
- std::wstring path_string =
- command_line->GetSwitchValue(switches::kUserScriptsDir);
- script_dir = FilePath::FromWStringHack(path_string);
- } else {
- script_dir = GetPath();
- script_dir = script_dir.Append(chrome::kUserScriptsDirname);
- }
- }
-
ExtensionErrorReporter::Init(true); // allow noisy errors.
+
+ FilePath script_dir; // Don't look for user scripts in any directory.
+ // TODO(aa): We should just remove this functionality,
+ // since it isn't used anymore.
user_script_master_ = new UserScriptMaster(script_dir);
+
extensions_service_ = new ExtensionsService(
this,
CommandLine::ForCurrentProcess(),