| Index: content/browser/browser_plugin/browser_plugin_guest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| index 0eebca783f0dc31122a20ac916e1fd3de55979fa..3842a85744a04ccbd6285abd903399d9b67064ab 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -331,6 +331,18 @@ BrowserPluginGuest* BrowserPluginGuest::Create(
|
| return guest;
|
| }
|
|
|
| +// static
|
| +bool BrowserPluginGuest::IsGuest(WebContentsImpl* web_contents) {
|
| + return web_contents && web_contents->GetBrowserPluginGuest();
|
| +}
|
| +
|
| +// static
|
| +bool BrowserPluginGuest::IsGuest(RenderViewHostImpl* render_view_host) {
|
| + return render_view_host && IsGuest(
|
| + static_cast<WebContentsImpl*>(WebContents::FromRenderViewHost(
|
| + render_view_host)));
|
| +}
|
| +
|
| RenderWidgetHostView* BrowserPluginGuest::GetEmbedderRenderWidgetHostView() {
|
| if (!attached())
|
| return NULL;
|
|
|