diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-15 18:22:41 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-15 18:22:41 +0000 |
commit | 2c699655d5ed9cbf296a9389c3efe2a9fe01973e (patch) | |
tree | 843da73da9228499bf88063490fba73845740740 /chrome/browser/profile_impl.cc | |
parent | 731ae5165404c2ccf32af50ac3fda3364d41fbb1 (diff) | |
download | chromium_src-2c699655d5ed9cbf296a9389c3efe2a9fe01973e.zip chromium_src-2c699655d5ed9cbf296a9389c3efe2a9fe01973e.tar.gz chromium_src-2c699655d5ed9cbf296a9389c3efe2a9fe01973e.tar.bz2 |
Pull events-related code out of ExtensionMessageService into its own class.
The events code is independent of the messaging code and didn't belong in the
same class.
This is part 1 of an extension event refactor. See bug for more details.
BUG=58214
TEST=covered by tests
Review URL: http://codereview.chromium.org/3758005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62764 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile_impl.cc')
-rw-r--r-- | chrome/browser/profile_impl.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/profile_impl.cc b/chrome/browser/profile_impl.cc index 9b0f887..18ac330 100644 --- a/chrome/browser/profile_impl.cc +++ b/chrome/browser/profile_impl.cc @@ -31,6 +31,7 @@ #include "chrome/browser/extensions/extension_devtools_manager.h" #include "chrome/browser/extensions/extension_error_reporter.h" #include "chrome/browser/extensions/extension_info_map.h" +#include "chrome/browser/extensions/extension_event_router.h" #include "chrome/browser/extensions/extension_message_service.h" #include "chrome/browser/extensions/extension_process_manager.h" #include "chrome/browser/extensions/extensions_service.h" @@ -353,6 +354,7 @@ void ProfileImpl::InitExtensions() { } extension_process_manager_.reset(ExtensionProcessManager::Create(this)); + extension_event_router_.reset(new ExtensionEventRouter(this)); extension_message_service_ = new ExtensionMessageService(this); ExtensionErrorReporter::Init(true); // allow noisy errors. @@ -648,6 +650,10 @@ ExtensionMessageService* ProfileImpl::GetExtensionMessageService() { return extension_message_service_.get(); } +ExtensionEventRouter* ProfileImpl::GetExtensionEventRouter() { + return extension_event_router_.get(); +} + SSLHostState* ProfileImpl::GetSSLHostState() { if (!ssl_host_state_.get()) ssl_host_state_.reset(new SSLHostState()); |