mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix linting violations
This commit is contained in:
@@ -125,8 +125,9 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
|
||||
std::string* payload) {
|
||||
const content::ResourceRequestInfo* info =
|
||||
content::ResourceRequestInfo::ForRequest(request);
|
||||
content::WebContents* web_contents = info->GetWebContentsGetterForRequest().Run();
|
||||
if (mime_type == "application/pdf" && info->IsMainFrame() &&
|
||||
content::WebContents* web_contents =
|
||||
info->GetWebContentsGetterForRequest().Run();
|
||||
if (mime_type == "application/pdf" && info->IsMainFrame() &&
|
||||
WebContentsPreferences::IsPluginsEnabled(web_contents)) {
|
||||
*origin = GURL(kPdfViewerUIOrigin);
|
||||
content::BrowserThread::PostTask(
|
||||
|
||||
@@ -237,7 +237,8 @@ bool WebContentsPreferences::UsesNativeWindowOpen(
|
||||
return use;
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::IsPluginsEnabled(content::WebContents* web_contents) {
|
||||
bool WebContentsPreferences::IsPluginsEnabled(
|
||||
content::WebContents* web_contents) {
|
||||
WebContentsPreferences* self;
|
||||
if (!web_contents)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user