| Index: content/browser/browser_plugin/browser_plugin_embedder.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| index 4c3900daa246593b22c4fbb1ae61cd3d3062c82c..930db2726a3e556f6b711610177a1f13c68d73da 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| @@ -102,7 +102,8 @@ void BrowserPluginEmbedder::NavigateGuest(RenderViewHost* render_view_host,
|
| AddGuest(instance_id, guest_web_contents, frame_id);
|
| guest_web_contents->SetDelegate(guest);
|
| } else {
|
| - guest_web_contents = static_cast<WebContentsImpl*>(guest->web_contents());
|
| + guest_web_contents =
|
| + static_cast<WebContentsImpl*>(guest->GetWebContents());
|
| }
|
|
|
| // We ignore loading empty urls in web_contents.
|
| @@ -142,7 +143,7 @@ void BrowserPluginEmbedder::ResizeGuest(int instance_id,
|
| if (!guest)
|
| return;
|
| WebContentsImpl* guest_web_contents =
|
| - static_cast<WebContentsImpl*>(guest->web_contents());
|
| + static_cast<WebContentsImpl*>(guest->GetWebContents());
|
| guest->SetDamageBuffer(damage_buffer,
|
| #if defined(OS_WIN)
|
| damage_buffer_size,
|
| @@ -180,7 +181,7 @@ void BrowserPluginEmbedder::HandleInputEvent(int instance_id,
|
| void BrowserPluginEmbedder::DestroyGuestByInstanceID(int instance_id) {
|
| BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id);
|
| if (guest) {
|
| - WebContents* guest_web_contents = guest->web_contents();
|
| + WebContents* guest_web_contents = guest->GetWebContents();
|
|
|
| // Destroy the guest's web_contents.
|
| delete guest_web_contents;
|
|
|