diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 18:04:36 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 18:04:36 +0000 |
commit | cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c (patch) | |
tree | 3e93a4cf6b79d02a8d7382482c0503f1947d65d0 /chrome/browser/extensions/extension_dom_ui.cc | |
parent | 86cf1066d2361c94f5d56f51188e10f5b4e90b02 (diff) | |
download | chromium_src-cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c.zip chromium_src-cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c.tar.gz chromium_src-cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c.tar.bz2 |
Fix for bug where we would not create ExtensionFunctionDispatcher
instances for ExtensionDOMUI if RenderView was reused.
BUG=16853
TEST=Added browser test
Review URL: http://codereview.chromium.org/155592
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_dom_ui.cc')
-rw-r--r-- | chrome/browser/extensions/extension_dom_ui.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_dom_ui.cc b/chrome/browser/extensions/extension_dom_ui.cc index 0d24345..2fa4eb3 100644 --- a/chrome/browser/extensions/extension_dom_ui.cc +++ b/chrome/browser/extensions/extension_dom_ui.cc @@ -18,6 +18,12 @@ void ExtensionDOMUI::RenderViewCreated(RenderViewHost* render_view_host) { tab_contents()->GetURL())); } +void ExtensionDOMUI::RenderViewReused(RenderViewHost* render_view_host) { + extension_function_dispatcher_.reset( + new ExtensionFunctionDispatcher(render_view_host, this, + tab_contents()->GetURL())); +} + void ExtensionDOMUI::ProcessDOMUIMessage(const std::string& message, const std::string& content, int request_id, |