Browse Source

chore: cleanup include groupings (#43478)

David Sanders 7 months ago
parent
commit
56829f75c1

+ 1 - 1
shell/browser/api/electron_api_debugger.cc

@@ -5,9 +5,9 @@
 #include "shell/browser/api/electron_api_debugger.h"
 
 #include <string>
+#include <string_view>
 #include <utility>
 
-#include <string_view>
 #include "base/json/json_reader.h"
 #include "base/json/json_writer.h"
 #include "content/public/browser/devtools_agent_host.h"

+ 1 - 1
shell/browser/electron_download_manager_delegate.cc

@@ -5,10 +5,10 @@
 #include "shell/browser/electron_download_manager_delegate.h"
 
 #include <string>
+#include <string_view>
 #include <tuple>
 #include <utility>
 
-#include <string_view>
 #include "base/files/file_util.h"
 #include "base/functional/bind.h"
 #include "base/task/thread_pool.h"

+ 1 - 1
shell/browser/net/asar/asar_url_loader.cc

@@ -7,10 +7,10 @@
 #include <algorithm>
 #include <memory>
 #include <string>
+#include <string_view>
 #include <utility>
 #include <vector>
 
-#include <string_view>
 #include "base/task/thread_pool.h"
 #include "content/public/browser/file_url_loader.h"
 #include "mojo/public/cpp/bindings/receiver.h"

+ 1 - 1
shell/browser/net/url_pipe_loader.h

@@ -7,9 +7,9 @@
 
 #include <memory>
 #include <string>
+#include <string_view>
 #include <vector>
 
-#include <string_view>
 #include "base/values.h"
 #include "mojo/public/cpp/bindings/receiver.h"
 #include "mojo/public/cpp/bindings/remote.h"

+ 1 - 1
shell/browser/serial/serial_chooser_context.cc

@@ -5,9 +5,9 @@
 #include "shell/browser/serial/serial_chooser_context.h"
 
 #include <string>
+#include <string_view>
 #include <utility>
 
-#include <string_view>
 #include "base/base64.h"
 #include "base/containers/contains.h"
 #include "base/values.h"

+ 0 - 1
shell/browser/ui/inspectable_web_contents.cc

@@ -10,7 +10,6 @@
 #include <string_view>
 #include <utility>
 
-#include <string_view>
 #include "base/base64.h"
 #include "base/memory/raw_ptr.h"
 #include "base/metrics/histogram.h"

+ 1 - 1
shell/browser/usb/usb_chooser_context.cc

@@ -4,10 +4,10 @@
 
 #include "shell/browser/usb/usb_chooser_context.h"
 
+#include <string_view>
 #include <utility>
 #include <vector>
 
-#include <string_view>
 #include "base/containers/contains.h"
 #include "base/functional/bind.h"
 #include "base/task/sequenced_task_runner.h"

+ 1 - 1
shell/common/api/electron_api_url_loader.h

@@ -7,9 +7,9 @@
 
 #include <memory>
 #include <string>
+#include <string_view>
 #include <vector>
 
-#include <string_view>
 #include "base/memory/raw_ptr.h"
 #include "base/memory/weak_ptr.h"
 #include "base/sequence_checker.h"

+ 1 - 0
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 {

+ 2 - 0
shell/common/process_util.cc

@@ -4,7 +4,9 @@
 
 #include "shell/common/process_util.h"
 
+#include <string>
 #include <string_view>
+
 #include "base/command_line.h"
 #include "content/public/common/content_switches.h"
 #include "gin/dictionary.h"