Fix linting violations

This commit is contained in:
rreimann 2017-05-17 16:02:42 +02:00 committed by Kevin Sawicki
parent 1b75e45a62
commit 7982754958
2 changed files with 5 additions and 3 deletions

View file

@ -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);

View file

@ -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;