summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 18:36:46 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 18:36:46 +0000
commit173de1be12780200c62bae5c01965d51ac0eaa31 (patch)
tree5ab851b72e8012f49a4d80b281744a6b64d40753 /webkit/glue/webplugin_impl.cc
parent1f2763de9d897fc2b0e6da4c2323b7d8ab70c687 (diff)
downloadchromium_src-173de1be12780200c62bae5c01965d51ac0eaa31.zip
chromium_src-173de1be12780200c62bae5c01965d51ac0eaa31.tar.gz
chromium_src-173de1be12780200c62bae5c01965d51ac0eaa31.tar.bz2
Step 1 at making Gears run in the renderer process (enabled by switch
"--gears-in-renderer"). Requires some changes to gears to work. Most things work if you disable the sandbox. One major hole is that update tasks don't report status to the appropriate renderer. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@954 0039d316-1c4b-4281-b951-d872f2087c98
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) {