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

View file

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