enable chromium style checker plugin for electron and brightray targets

This commit is contained in:
deepak1556 2018-04-18 15:39:45 +05:30 committed by Jeremy Apthorp
parent 7c5fcecbec
commit 30f1d0991b
7 changed files with 96 additions and 37 deletions

View file

@ -675,7 +675,8 @@ content::KeyboardEventProcessingResult WebContents::PreHandleKeyboardEvent(
void WebContents::EnterFullscreenModeForTab(content::WebContents* source,
const GURL& origin) {
auto* permission_helper = WebContentsPermissionHelper::FromWebContents(source);
auto* permission_helper =
WebContentsPermissionHelper::FromWebContents(source);
auto callback = base::Bind(&WebContents::OnEnterFullscreenModeForTab,
base::Unretained(this), source, origin);
permission_helper->RequestFullscreenPermission(callback);