| Index: content/renderer/pepper/pepper_webplugin_impl.cc
|
| diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc
|
| index ecdd9e5b857fda17a698f17809a0b2e414ab5f3b..5b9095308a71dcdaf0279cca76e1f95e9d381eb5 100644
|
| --- a/content/renderer/pepper/pepper_webplugin_impl.cc
|
| +++ b/content/renderer/pepper/pepper_webplugin_impl.cc
|
| @@ -56,11 +56,13 @@ struct PepperWebPluginImpl::InitData {
|
|
|
| PepperWebPluginImpl::PepperWebPluginImpl(PluginModule* plugin_module,
|
| const WebPluginParams& params,
|
| - RenderFrameImpl* render_frame)
|
| + RenderFrameImpl* render_frame,
|
| + const blink::WebURL& top_frame_url)
|
| : init_data_(new InitData()),
|
| full_frame_(params.loadManually),
|
| instance_object_(PP_MakeUndefined()),
|
| - container_(NULL) {
|
| + container_(NULL),
|
| + top_frame_url_(top_frame_url) {
|
| DCHECK(plugin_module);
|
| init_data_->module = plugin_module;
|
| init_data_->render_frame = render_frame;
|
| @@ -83,7 +85,7 @@ blink::WebPluginContainer* PepperWebPluginImpl::container() const {
|
| bool PepperWebPluginImpl::initialize(WebPluginContainer* container) {
|
| // The plugin delegate may have gone away.
|
| instance_ = init_data_->module->CreateInstance(
|
| - init_data_->render_frame, container, init_data_->url);
|
| + init_data_->render_frame, container, init_data_->url, top_frame_url_);
|
| if (!instance_.get())
|
| return false;
|
|
|
|
|