summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_idle_api.cc
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 18:22:41 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 18:22:41 +0000
commit2c699655d5ed9cbf296a9389c3efe2a9fe01973e (patch)
tree843da73da9228499bf88063490fba73845740740 /chrome/browser/extensions/extension_idle_api.cc
parent731ae5165404c2ccf32af50ac3fda3364d41fbb1 (diff)
downloadchromium_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/extensions/extension_idle_api.cc')
-rw-r--r--chrome/browser/extensions/extension_idle_api.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_idle_api.cc b/chrome/browser/extensions/extension_idle_api.cc
index 0de5032..8af7d97 100644
--- a/chrome/browser/extensions/extension_idle_api.cc
+++ b/chrome/browser/extensions/extension_idle_api.cc
@@ -15,9 +15,9 @@
#include "base/task.h"
#include "base/time.h"
#include "chrome/browser/browser.h"
+#include "chrome/browser/extensions/extension_event_router.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_idle_api_constants.h"
-#include "chrome/browser/extensions/extension_message_service.h"
#include "chrome/browser/extensions/extensions_service.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/common/extensions/extension.h"
@@ -152,6 +152,6 @@ void ExtensionIdleEventRouter::OnIdleStateChange(Profile* profile,
std::string json_args;
base::JSONWriter::Write(&args, false, &json_args);
- profile->GetExtensionMessageService()->DispatchEventToRenderers(
+ profile->GetExtensionEventRouter()->DispatchEventToRenderers(
keys::kOnStateChanged, json_args, profile, GURL());
}