summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_infobar_module.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 19:59:41 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 19:59:41 +0000
commit0ec9203dac6b11c664adda8a39b77f3f00eb6072 (patch)
tree65e5cff3f9e04da87e32e9436ddc795a7811c278 /chrome/browser/extensions/extension_infobar_module.cc
parent630d1b047c8c4ea54eef06fa24a89ad516457875 (diff)
downloadchromium_src-0ec9203dac6b11c664adda8a39b77f3f00eb6072.zip
chromium_src-0ec9203dac6b11c664adda8a39b77f3f00eb6072.tar.gz
chromium_src-0ec9203dac6b11c664adda8a39b77f3f00eb6072.tar.bz2
Generalize the ExtensionFunctionDispatcher::Delegate interface a bit more. In particular remove GetExtensionHost() and GetExtensionDOMUI(). I'm going to add a new type of EFD::Delegate soon that is neither of these, and I don't think it makes sense to have the code assume that EFD::Delegate must be one of the two of them.
Some code still does RTTI stuff through RenderViewHostDelegate::GetRenderViewType(), but in that case it is more clear that there are a long list of potential view types, and that the caller must be more careful. Review URL: http://codereview.chromium.org/1149003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_infobar_module.cc')
-rw-r--r--chrome/browser/extensions/extension_infobar_module.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_infobar_module.cc b/chrome/browser/extensions/extension_infobar_module.cc
index fb5b2ed..01eec16 100644
--- a/chrome/browser/extensions/extension_infobar_module.cc
+++ b/chrome/browser/extensions/extension_infobar_module.cc
@@ -29,7 +29,7 @@ bool ShowInfoBarFunction::RunImpl() {
Extension* extension = dispatcher()->GetExtension();
GURL url = extension->GetResourceURL(extension->url(), html_path);
- Browser* browser = dispatcher()->GetBrowser(true);
+ Browser* browser = dispatcher()->GetCurrentBrowser(true);
if (!browser) {
error_ = keys::kNoCurrentWindowError;
return false;