Discard is_guest_, use type_ instead

This commit is contained in:
Cheng Zhao 2015-06-24 22:23:38 +08:00
parent 2bfa9da82e
commit 19ca011735
5 changed files with 24 additions and 30 deletions

View file

@ -107,9 +107,8 @@ void AppendToFile(const base::FilePath& path,
} // namespace
CommonWebContentsDelegate::CommonWebContentsDelegate(bool is_guest)
: is_guest_(is_guest),
owner_window_(nullptr),
CommonWebContentsDelegate::CommonWebContentsDelegate()
: owner_window_(nullptr),
html_fullscreen_(false),
native_fullscreen_(false) {
}
@ -180,11 +179,6 @@ bool CommonWebContentsDelegate::CanOverscrollContent() const {
return false;
}
bool CommonWebContentsDelegate::IsPopupOrPanel(
const content::WebContents* source) const {
return !is_guest_;
}
content::JavaScriptDialogManager*
CommonWebContentsDelegate::GetJavaScriptDialogManager(
content::WebContents* source) {