summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r--webkit/glue/webplugin_impl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 91d66b5..7a58b57 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -447,10 +447,11 @@ std::string WebPluginImpl::GetCookies(const GURL& url, const GURL& policy_url) {
void WebPluginImpl::ShowModalHTMLDialog(const GURL& url, int width, int height,
const std::string& json_arguments,
std::string* json_retval) {
- // TODO(mpcomplete): Figure out how to call out to the RenderView and
- // implement this. Though, this is never called atm - only the out-of-process
- // version is used.
- NOTREACHED();
+ if (webframe_ && webframe_->GetView() &&
+ webframe_->GetView()->GetDelegate()) {
+ webframe_->GetView()->GetDelegate()->ShowModalHTMLDialog(
+ url, width, height, json_arguments, json_retval);
+ }
}
void WebPluginImpl::OnMissingPluginStatus(int status) {