Fixing coding style

This commit is contained in:
Ahmed Mohamed Ali 2017-10-14 11:17:52 +02:00
parent 5030db000a
commit 8763e8ee35

View file

@ -14,8 +14,8 @@
#include "base/strings/utf_string_conversions.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/stream_info.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/stream_info.h"
#include "net/base/escape.h"
#include "net/ssl/client_cert_store.h"
#include "net/url_request/url_request.h"
@ -35,8 +35,7 @@ namespace atom {
namespace {
void OnOpenExternal(const GURL& escaped_url,
bool allowed) {
void OnOpenExternal(const GURL& escaped_url, bool allowed) {
if (allowed)
platform_util::OpenExternal(
#if defined(OS_WIN)
@ -95,8 +94,7 @@ void OnPdfResourceIntercepted(
content::RenderFrameHost* frame_host =
content::RenderFrameHost::FromID(render_process_host_id, render_frame_id);
if (!frame_host)
{
if (!frame_host) {
return;
}
@ -106,15 +104,13 @@ void OnPdfResourceIntercepted(
} // namespace
AtomResourceDispatcherHostDelegate::AtomResourceDispatcherHostDelegate() {
}
AtomResourceDispatcherHostDelegate::AtomResourceDispatcherHostDelegate() {}
bool AtomResourceDispatcherHostDelegate::HandleExternalProtocol(
const GURL& url,
content::ResourceRequestInfo* info) {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
base::Bind(&HandleExternalProtocolInUI,
url,
base::Bind(&HandleExternalProtocolInUI, url,
info->GetWebContentsGetterForRequest(),
info->HasUserGesture()));
return true;
@ -153,8 +149,8 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
int render_process_host_id;
int render_frame_id;
if (!info->GetAssociatedRenderFrame(&render_process_host_id, &render_frame_id))
{
if (!info->GetAssociatedRenderFrame(&render_process_host_id,
&render_frame_id)) {
return false;
}
@ -163,7 +159,8 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
content::BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&OnPdfResourceIntercepted, request->url(),
render_process_host_id, render_frame_id, info->GetWebContentsGetterForRequest()));
render_process_host_id, render_frame_id,
info->GetWebContentsGetterForRequest()));
return true;
}
return false;