From 56829f75c178d875add8f189ee96675a0f2caa8a Mon Sep 17 00:00:00 2001 From: David Sanders Date: Mon, 26 Aug 2024 07:44:20 -0700 Subject: [PATCH] chore: cleanup include groupings (#43478) --- shell/browser/api/electron_api_debugger.cc | 2 +- shell/browser/electron_download_manager_delegate.cc | 2 +- shell/browser/net/asar/asar_url_loader.cc | 2 +- shell/browser/net/url_pipe_loader.h | 2 +- shell/browser/serial/serial_chooser_context.cc | 2 +- shell/browser/ui/inspectable_web_contents.cc | 1 - shell/browser/usb/usb_chooser_context.cc | 2 +- shell/common/api/electron_api_url_loader.h | 2 +- shell/common/gin_helper/arguments.cc | 1 + shell/common/process_util.cc | 2 ++ 10 files changed, 10 insertions(+), 8 deletions(-) diff --git a/shell/browser/api/electron_api_debugger.cc b/shell/browser/api/electron_api_debugger.cc index b1f2ed59fc..19a11d9ce7 100755 --- a/shell/browser/api/electron_api_debugger.cc +++ b/shell/browser/api/electron_api_debugger.cc @@ -5,9 +5,9 @@ #include "shell/browser/api/electron_api_debugger.h" #include +#include #include -#include #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include "content/public/browser/devtools_agent_host.h" diff --git a/shell/browser/electron_download_manager_delegate.cc b/shell/browser/electron_download_manager_delegate.cc index 233d95a48e..3f77e653b8 100644 --- a/shell/browser/electron_download_manager_delegate.cc +++ b/shell/browser/electron_download_manager_delegate.cc @@ -5,10 +5,10 @@ #include "shell/browser/electron_download_manager_delegate.h" #include +#include #include #include -#include #include "base/files/file_util.h" #include "base/functional/bind.h" #include "base/task/thread_pool.h" diff --git a/shell/browser/net/asar/asar_url_loader.cc b/shell/browser/net/asar/asar_url_loader.cc index 98e5543af5..cef6e74b62 100644 --- a/shell/browser/net/asar/asar_url_loader.cc +++ b/shell/browser/net/asar/asar_url_loader.cc @@ -7,10 +7,10 @@ #include #include #include +#include #include #include -#include #include "base/task/thread_pool.h" #include "content/public/browser/file_url_loader.h" #include "mojo/public/cpp/bindings/receiver.h" diff --git a/shell/browser/net/url_pipe_loader.h b/shell/browser/net/url_pipe_loader.h index 9638a52d34..c1a05969e3 100644 --- a/shell/browser/net/url_pipe_loader.h +++ b/shell/browser/net/url_pipe_loader.h @@ -7,9 +7,9 @@ #include #include +#include #include -#include #include "base/values.h" #include "mojo/public/cpp/bindings/receiver.h" #include "mojo/public/cpp/bindings/remote.h" diff --git a/shell/browser/serial/serial_chooser_context.cc b/shell/browser/serial/serial_chooser_context.cc index 2604a97f98..c082d4f5f5 100644 --- a/shell/browser/serial/serial_chooser_context.cc +++ b/shell/browser/serial/serial_chooser_context.cc @@ -5,9 +5,9 @@ #include "shell/browser/serial/serial_chooser_context.h" #include +#include #include -#include #include "base/base64.h" #include "base/containers/contains.h" #include "base/values.h" diff --git a/shell/browser/ui/inspectable_web_contents.cc b/shell/browser/ui/inspectable_web_contents.cc index 00ae991447..d755bbbfbd 100644 --- a/shell/browser/ui/inspectable_web_contents.cc +++ b/shell/browser/ui/inspectable_web_contents.cc @@ -10,7 +10,6 @@ #include #include -#include #include "base/base64.h" #include "base/memory/raw_ptr.h" #include "base/metrics/histogram.h" diff --git a/shell/browser/usb/usb_chooser_context.cc b/shell/browser/usb/usb_chooser_context.cc index 5151999b42..9304792f82 100644 --- a/shell/browser/usb/usb_chooser_context.cc +++ b/shell/browser/usb/usb_chooser_context.cc @@ -4,10 +4,10 @@ #include "shell/browser/usb/usb_chooser_context.h" +#include #include #include -#include #include "base/containers/contains.h" #include "base/functional/bind.h" #include "base/task/sequenced_task_runner.h" diff --git a/shell/common/api/electron_api_url_loader.h b/shell/common/api/electron_api_url_loader.h index e87ce6c3c2..b78f9e3d1d 100644 --- a/shell/common/api/electron_api_url_loader.h +++ b/shell/common/api/electron_api_url_loader.h @@ -7,9 +7,9 @@ #include #include +#include #include -#include #include "base/memory/raw_ptr.h" #include "base/memory/weak_ptr.h" #include "base/sequence_checker.h" diff --git a/shell/common/gin_helper/arguments.cc b/shell/common/gin_helper/arguments.cc index 272aa7f01e..9047d26d6d 100644 --- a/shell/common/gin_helper/arguments.cc +++ b/shell/common/gin_helper/arguments.cc @@ -7,6 +7,7 @@ #include "shell/common/gin_helper/arguments.h" #include "v8/include/v8-exception.h" + namespace gin_helper { void Arguments::ThrowError() const { diff --git a/shell/common/process_util.cc b/shell/common/process_util.cc index adcea8e310..8b34b736d0 100644 --- a/shell/common/process_util.cc +++ b/shell/common/process_util.cc @@ -4,7 +4,9 @@ #include "shell/common/process_util.h" +#include #include + #include "base/command_line.h" #include "content/public/common/content_switches.h" #include "gin/dictionary.h"