From 1fcb5e1dc017350200555489f30103427f506730 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 13 May 2019 16:07:41 -0400 Subject: [PATCH] cleanup lint issues. --- atom/browser/atom_resource_dispatcher_host_delegate.cc | 2 ++ atom/browser/atom_resource_dispatcher_host_delegate.h | 6 ++++-- atom/common/extensions/api/BUILD.gn | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/atom/browser/atom_resource_dispatcher_host_delegate.cc b/atom/browser/atom_resource_dispatcher_host_delegate.cc index 28f0444e338d9..a555bb3cc12b8 100644 --- a/atom/browser/atom_resource_dispatcher_host_delegate.cc +++ b/atom/browser/atom_resource_dispatcher_host_delegate.cc @@ -17,6 +17,8 @@ #include "url/gurl.h" #if BUILDFLAG(ENABLE_PDF_VIEWER) +#include +#include #include "atom/common/atom_constants.h" #include "base/guid.h" #include "base/strings/strcat.h" diff --git a/atom/browser/atom_resource_dispatcher_host_delegate.h b/atom/browser/atom_resource_dispatcher_host_delegate.h index 4322e514863c5..fbb50a156882c 100644 --- a/atom/browser/atom_resource_dispatcher_host_delegate.h +++ b/atom/browser/atom_resource_dispatcher_host_delegate.h @@ -11,6 +11,8 @@ #include "electron/buildflags/buildflags.h" #if BUILDFLAG(ENABLE_PDF_VIEWER) +#include +#include #include "content/public/common/transferrable_url_loader.mojom.h" #endif @@ -45,8 +47,6 @@ class AtomResourceDispatcherHostDelegate #endif private: - DISALLOW_COPY_AND_ASSIGN(AtomResourceDispatcherHostDelegate); - #if BUILDFLAG(ENABLE_PDF_VIEWER) struct StreamTargetInfo { std::string extension_id; @@ -57,6 +57,8 @@ class AtomResourceDispatcherHostDelegate #endif }; +DISALLOW_COPY_AND_ASSIGN(AtomResourceDispatcherHostDelegate); + } // namespace atom #endif // ATOM_BROWSER_ATOM_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ diff --git a/atom/common/extensions/api/BUILD.gn b/atom/common/extensions/api/BUILD.gn index a4fecb12340b5..41a99776a2d13 100644 --- a/atom/common/extensions/api/BUILD.gn +++ b/atom/common/extensions/api/BUILD.gn @@ -9,7 +9,6 @@ import("//extensions/buildflags/buildflags.gni") import("//tools/json_schema_compiler/json_features.gni") import("//tools/json_schema_compiler/json_schema_api.gni") - assert(enable_extensions) ################################################################################