From e0518444da54b5797c3efe00d9341cecda6b51a7 Mon Sep 17 00:00:00 2001 From: Vladimir Vainer Date: Mon, 17 Jul 2017 16:52:02 +0300 Subject: [PATCH] Minor changes to match style, init variables --- atom/browser/api/atom_api_web_contents.cc | 2 +- atom/browser/web_view_guest_delegate.cc | 1 + atom/browser/web_view_guest_delegate.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 4a9c19c55f91..a23d2817b87d 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -993,7 +993,7 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) { return; } - if (guest_delegate_ && !guest_delegate_->Attached()) { + if (guest_delegate_ && !guest_delegate_->IsAttached()) { return; } diff --git a/atom/browser/web_view_guest_delegate.cc b/atom/browser/web_view_guest_delegate.cc index c8aee6a2e8d3..1fc79a6a3420 100644 --- a/atom/browser/web_view_guest_delegate.cc +++ b/atom/browser/web_view_guest_delegate.cc @@ -28,6 +28,7 @@ WebViewGuestDelegate::WebViewGuestDelegate() guest_host_(nullptr), auto_size_enabled_(false), is_full_page_plugin_(false), + attached_(false), api_web_contents_(nullptr) {} WebViewGuestDelegate::~WebViewGuestDelegate() { diff --git a/atom/browser/web_view_guest_delegate.h b/atom/browser/web_view_guest_delegate.h index 777639df1f51..2e2941b5a356 100644 --- a/atom/browser/web_view_guest_delegate.h +++ b/atom/browser/web_view_guest_delegate.h @@ -48,7 +48,7 @@ class WebViewGuestDelegate : public content::BrowserPluginGuestDelegate, void SetSize(const SetSizeParams& params); // Return true if attached. - bool Attached() const { return attached_; } + bool IsAttached() const { return attached_; } protected: // content::WebContentsObserver: