From 46c7ba734b6b63dcf241cf33e5bd595969f265dc Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 4 Aug 2015 16:46:11 +0800 Subject: [PATCH] Fix WillAttach API changes in content::BrowserPluginGuestDelegate. --- atom/browser/web_view_guest_delegate.cc | 3 ++- atom/browser/web_view_guest_delegate.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/atom/browser/web_view_guest_delegate.cc b/atom/browser/web_view_guest_delegate.cc index 38f4da4c1f96..efa21421c0d6 100644 --- a/atom/browser/web_view_guest_delegate.cc +++ b/atom/browser/web_view_guest_delegate.cc @@ -158,7 +158,8 @@ void WebViewGuestDelegate::SetGuestHost(content::GuestHost* guest_host) { void WebViewGuestDelegate::WillAttach( content::WebContents* embedder_web_contents, int element_instance_id, - bool is_full_page_plugin) { + bool is_full_page_plugin, + const base::Closure& completion_callback) { embedder_web_contents_ = embedder_web_contents; is_full_page_plugin_ = is_full_page_plugin; } diff --git a/atom/browser/web_view_guest_delegate.h b/atom/browser/web_view_guest_delegate.h index 3312b46104a0..65e0bcde1916 100644 --- a/atom/browser/web_view_guest_delegate.h +++ b/atom/browser/web_view_guest_delegate.h @@ -70,7 +70,8 @@ class WebViewGuestDelegate : public content::BrowserPluginGuestDelegate, void SetGuestHost(content::GuestHost* guest_host) final; void WillAttach(content::WebContents* embedder_web_contents, int element_instance_id, - bool is_full_page_plugin) final; + bool is_full_page_plugin, + const base::Closure& completion_callback) final; private: // This method is invoked when the contents auto-resized to give the container