Fix linting violations
This commit is contained in:
parent
1b75e45a62
commit
7982754958
2 changed files with 5 additions and 3 deletions
|
@ -125,7 +125,8 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
|
|||
std::string* payload) {
|
||||
const content::ResourceRequestInfo* info =
|
||||
content::ResourceRequestInfo::ForRequest(request);
|
||||
content::WebContents* web_contents = info->GetWebContentsGetterForRequest().Run();
|
||||
content::WebContents* web_contents =
|
||||
info->GetWebContentsGetterForRequest().Run();
|
||||
if (mime_type == "application/pdf" && info->IsMainFrame() &&
|
||||
WebContentsPreferences::IsPluginsEnabled(web_contents)) {
|
||||
*origin = GURL(kPdfViewerUIOrigin);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue