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

Unified Diff: chrome/browser/profile.cc

Issue 115974: The extensions service wasn't getting inited despite being used by themes (th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
Index: chrome/browser/profile.cc
===================================================================
--- chrome/browser/profile.cc (revision 17327)
+++ chrome/browser/profile.cc (working copy)
@@ -431,9 +431,6 @@
bool user_scripts_enabled =
command_line->HasSwitch(switches::kEnableUserScripts) ||
prefs->GetBoolean(prefs::kEnableUserScripts);
- bool extensions_enabled =
- command_line->HasSwitch(switches::kEnableExtensions) ||
- prefs->GetBoolean(prefs::kEnableExtensions);
FilePath script_dir;
if (user_scripts_enabled) {
@@ -449,18 +446,14 @@
ExtensionErrorReporter::Init(true); // allow noisy errors.
user_script_master_ = new UserScriptMaster(
- g_browser_process->file_thread()->message_loop(), script_dir);
+ g_browser_process->file_thread()->message_loop(),
+ script_dir);
extensions_service_ = new ExtensionsService(
this, MessageLoop::current(),
g_browser_process->file_thread()->message_loop(),
std::string()); // Use default registry path
- // If we have extensions, the extension service will kick off the first scan
- // after extensions are loaded. Otherwise, we need to do that now.
- if (extensions_enabled)
- extensions_service_->Init();
- else if (user_scripts_enabled)
- user_script_master_->StartScan();
+ extensions_service_->Init();
}
ProfileImpl::~ProfileImpl() {

Powered by Google App Engine
This is Rietveld 408576698