Commit 9656bc5a authored by marja@chromium.org's avatar marja@chromium.org

Fix: create ExtensionInfoMap earlier.

This is needed so that ProfileImpl ctor can access DOMStorageContext.

The ExtensionInfoMap is needed early, in ProfileIOData::InitializeOnUIThread. Construct it on demand.

BUG=104292

Review URL: https://chromiumcodereview.appspot.com/10830278

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151291 0039d316-1c4b-4281-b951-d872f2087c98
parent c9c7008e
......@@ -93,12 +93,6 @@ void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() {
management_policy_->RegisterProvider(extension_prefs_.get());
}
void ExtensionSystemImpl::Shared::InitInfoMap() {
// The ExtensionInfoMap needs to be created before the
// ExtensionProcessManager.
extension_info_map_ = new ExtensionInfoMap();
}
void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
const CommandLine* command_line = CommandLine::ForCurrentProcess();
......@@ -213,6 +207,8 @@ UserScriptMaster* ExtensionSystemImpl::Shared::user_script_master() {
}
ExtensionInfoMap* ExtensionSystemImpl::Shared::info_map() {
if (!extension_info_map_)
extension_info_map_ = new ExtensionInfoMap();
return extension_info_map_.get();
}
......@@ -265,7 +261,9 @@ void ExtensionSystemImpl::InitForRegularProfile(bool extensions_enabled) {
extension_devtools_manager_ = new ExtensionDevToolsManager(profile_);
}
shared_->InitInfoMap();
// The ExtensionInfoMap needs to be created before the
// ExtensionProcessManager.
shared_->info_map();
extension_process_manager_.reset(ExtensionProcessManager::Create(profile_));
alarm_manager_.reset(new AlarmManager(profile_, &base::Time::Now));
......
......@@ -185,7 +185,6 @@ class ExtensionSystemImpl : public ExtensionSystem {
virtual void InitPrefs();
// This must not be called until all the providers have been created.
void RegisterManagementPolicyProviders();
void InitInfoMap();
void Init(bool extensions_enabled);
StateStore* state_store();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment