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) {
|
std::string* payload) {
|
||||||
const content::ResourceRequestInfo* info =
|
const content::ResourceRequestInfo* info =
|
||||||
content::ResourceRequestInfo::ForRequest(request);
|
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() &&
|
if (mime_type == "application/pdf" && info->IsMainFrame() &&
|
||||||
WebContentsPreferences::IsPluginsEnabled(web_contents)) {
|
WebContentsPreferences::IsPluginsEnabled(web_contents)) {
|
||||||
*origin = GURL(kPdfViewerUIOrigin);
|
*origin = GURL(kPdfViewerUIOrigin);
|
||||||
|
|
|
@ -237,7 +237,8 @@ bool WebContentsPreferences::UsesNativeWindowOpen(
|
||||||
return use;
|
return use;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebContentsPreferences::IsPluginsEnabled(content::WebContents* web_contents) {
|
bool WebContentsPreferences::IsPluginsEnabled(
|
||||||
|
content::WebContents* web_contents) {
|
||||||
WebContentsPreferences* self;
|
WebContentsPreferences* self;
|
||||||
if (!web_contents)
|
if (!web_contents)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue