diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 17:32:24 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 17:32:24 +0000 |
commit | 6779aa1d281cce1b77c96d5fb77535c9838b0949 (patch) | |
tree | 2eef595d07ab6d858dfffc27202d5e00a80f6934 /chrome/renderer/extensions/event_bindings.cc | |
parent | ba0483f513f5f28a7eeff34dafa4e89d2c232c61 (diff) | |
download | chromium_src-6779aa1d281cce1b77c96d5fb77535c9838b0949.zip chromium_src-6779aa1d281cce1b77c96d5fb77535c9838b0949.tar.gz chromium_src-6779aa1d281cce1b77c96d5fb77535c9838b0949.tar.bz2 |
Move the dispatching of extension messages out of RenderThread. This also moves a bunch of extension related state out of RenderThread.
Review URL: http://codereview.chromium.org/6765011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/event_bindings.cc')
-rw-r--r-- | chrome/renderer/extensions/event_bindings.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/extensions/event_bindings.cc b/chrome/renderer/extensions/event_bindings.cc index 7dd83ca..0e41f64 100644 --- a/chrome/renderer/extensions/event_bindings.cc +++ b/chrome/renderer/extensions/event_bindings.cc @@ -11,6 +11,7 @@ #include "chrome/common/url_constants.h" #include "chrome/renderer/extensions/bindings_utils.h" #include "chrome/renderer/extensions/event_bindings.h" +#include "chrome/renderer/extensions/extension_dispatcher.h" #include "chrome/renderer/extensions/extension_process_bindings.h" #include "chrome/renderer/extensions/js_only_v8_extensions.h" #include "chrome/renderer/render_thread.h" @@ -265,7 +266,7 @@ void EventBindings::HandleContextCreated(WebFrame* frame, bool content_script) { if (!ds) ds = frame->dataSource(); GURL url = ds->request().url(); - const ExtensionSet* extensions = GetRenderThread()->GetExtensions(); + const ExtensionSet* extensions = ExtensionDispatcher::Get()->extensions(); std::string extension_id = extensions->GetIdByURL(url); if (!extensions->ExtensionBindingsAllowed(url) && |