Minor changes to match style, init variables
This commit is contained in:
parent
42cb3461af
commit
e0518444da
3 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue