Minor changes to match style, init variables

This commit is contained in:
Vladimir Vainer 2017-07-17 16:52:02 +03:00
parent 42cb3461af
commit e0518444da
3 changed files with 3 additions and 2 deletions

View file

@ -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;
}

View file

@ -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() {

View file

@ -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: