Browse Source

chore: remove unused #includes (#42971)

* chore: iwyu buildflags.h

* chore: iwyu dictionary.h

* chore: iwyu arguments.h

* chore: iwyu values.h

* chore: iwyu compiler_specific.h

* chore: iwyu binder_map.h

* chore: iwyu <vector>

* chore: iwyu <set>

* chore: iwyu raw_ptr

* chore: iwyu gfx/canvas.h

* chore: iwyu gfx/color_utils.h

* chore: iwyu base/strings/stringprintf.h

* chore: iwyu base/task/thread_pool.h

* chore: iwyu base/no_destructor.h

* chore: iwyu base/path_service.h

* chore: iwyu base/files/file_pathh

* chore: iwyu base/strings/sys_string_conversions.h

* chore: iwyu base/logging.h

* chore: iwyu base/command_line.h

* chore: iwyu base/files/file_util.h

* chore: iwyu base/files/scoped_file.h

* chore: iwyu base/strings/utf_string_conversions.h

* chore: iwyu base/environment.h

* chore: iwyu base/scoped_observation.h

* chore: iwyu base/strings/string_split.h

* chore: iwyu base/strings/pattern.h

* chore: iwyu base/json/string_escape.h

* chore: iwyu base/json/json_reader.h

* chore: iwyu base/memory/singleton.h

* chore: iwyu base/observer_list.h

* chore: iwyu base/timer/timer.h

* fixup! chore: iwyu values.h

* chore: iwyu shell/browser/browser.h

* chore: iwyu base/stl_util.h

* chore: iwyu base/strings/string_util.h

* chore: iwyu shell/browser/javascript_environment.h

* chore: iwyu base/memory/ref_counted.h

* chore: iwyu base/environment.h

* chore: iwyu content/public/browser/browser_thread.h

* chore: remove unused typedef gin_helper::EventEmitter::ValueArray

* chore: iwyu gin/wrappable.h

* chore: iwyu shell/common/gin_helper/function_template_extensions.h

* chore: iwyu shell/common/gin_converters/login_item_settings_converter.h

* chore: iwyu shell/common/gin_helper/arguments.h

* chore: iwyu ui/gfx/skia_util.h

* chore: iwyu ui/gfx/geometry/rect.h

* chore: iwyu ui/gfx/image/image.h

* chore: iwyu base/strings/strcat.h

* chore: iwyu ui/native_theme/native_theme.h

* fixup! chore: iwyu shell/browser/javascript_environment.h

* fixup! chore: iwyu gfx/canvas.h

* fixup! chore: iwyu content/public/browser/browser_thread.h

* fixup! chore: iwyu ui/native_theme/native_theme.h

* fixup! chore: iwyu ui/native_theme/native_theme.h
Charles Kerr 9 months ago
parent
commit
60c4c9fec6
100 changed files with 44 additions and 121 deletions
  1. 0 3
      shell/app/electron_content_client.cc
  2. 0 3
      shell/app/electron_crash_reporter_client.cc
  3. 0 1
      shell/app/electron_crash_reporter_client.h
  4. 0 1
      shell/app/electron_library_main.h
  5. 0 1
      shell/app/electron_main_delegate.cc
  6. 0 1
      shell/app/electron_main_linux.cc
  7. 0 1
      shell/app/electron_main_mac.cc
  8. 0 1
      shell/app/electron_main_win.cc
  9. 0 2
      shell/app/node_main.cc
  10. 0 1
      shell/app/uv_task_runner.cc
  11. 1 0
      shell/browser/api/electron_api_app.cc
  12. 0 1
      shell/browser/api/electron_api_auto_updater.cc
  13. 0 1
      shell/browser/api/electron_api_crash_reporter.cc
  14. 0 1
      shell/browser/api/electron_api_data_pipe_holder.cc
  15. 4 1
      shell/browser/api/electron_api_debugger.h
  16. 0 2
      shell/browser/api/electron_api_global_shortcut.cc
  17. 4 1
      shell/browser/api/electron_api_menu.h
  18. 0 1
      shell/browser/api/electron_api_menu_mac.mm
  19. 0 1
      shell/browser/api/electron_api_native_theme.cc
  20. 0 1
      shell/browser/api/electron_api_notification.cc
  21. 0 1
      shell/browser/api/electron_api_notification.h
  22. 1 0
      shell/browser/api/electron_api_power_monitor_win.cc
  23. 0 1
      shell/browser/api/electron_api_protocol.cc
  24. 4 0
      shell/browser/api/electron_api_protocol.h
  25. 0 1
      shell/browser/api/electron_api_screen.cc
  26. 0 1
      shell/browser/api/electron_api_service_worker_context.cc
  27. 0 1
      shell/browser/api/electron_api_session.cc
  28. 1 1
      shell/browser/api/electron_api_session.h
  29. 0 3
      shell/browser/api/electron_api_system_preferences.cc
  30. 0 2
      shell/browser/api/electron_api_system_preferences_mac.mm
  31. 0 2
      shell/browser/api/electron_api_tray.cc
  32. 0 1
      shell/browser/api/electron_api_utility_process.cc
  33. 0 1
      shell/browser/api/electron_api_web_contents.cc
  34. 0 1
      shell/browser/api/electron_api_web_contents.h
  35. 0 1
      shell/browser/api/electron_api_web_request.cc
  36. 4 2
      shell/browser/api/electron_api_web_request.h
  37. 0 1
      shell/browser/api/gpuinfo_manager.cc
  38. 0 1
      shell/browser/badging/badge_manager_factory.cc
  39. 0 2
      shell/browser/bluetooth/electron_bluetooth_delegate.h
  40. 1 1
      shell/browser/browser.cc
  41. 0 3
      shell/browser/browser.h
  42. 0 1
      shell/browser/browser_mac.mm
  43. 0 1
      shell/browser/browser_process_impl.h
  44. 0 1
      shell/browser/browser_win.cc
  45. 0 1
      shell/browser/certificate_manager_model.h
  46. 0 4
      shell/browser/electron_browser_client.cc
  47. 0 1
      shell/browser/electron_browser_main_parts.cc
  48. 0 1
      shell/browser/electron_browser_main_parts.h
  49. 0 1
      shell/browser/electron_browser_main_parts_mac.mm
  50. 1 1
      shell/browser/electron_browser_main_parts_posix.cc
  51. 0 1
      shell/browser/electron_permission_manager.h
  52. 1 1
      shell/browser/electron_web_ui_controller_factory.cc
  53. 4 3
      shell/browser/extended_web_contents_observer.h
  54. 0 1
      shell/browser/extensions/api/extension_action/extension_action_api.cc
  55. 0 2
      shell/browser/extensions/api/extension_action/extension_action_api.h
  56. 0 1
      shell/browser/extensions/api/management/electron_management_api_delegate.cc
  57. 0 1
      shell/browser/extensions/api/resources_private/resources_private_api.cc
  58. 0 1
      shell/browser/extensions/api/scripting/scripting_api.cc
  59. 0 2
      shell/browser/extensions/electron_component_extension_resource_manager.cc
  60. 0 1
      shell/browser/extensions/electron_extension_loader.h
  61. 0 2
      shell/browser/extensions/electron_extension_system.cc
  62. 0 2
      shell/browser/extensions/electron_extension_system.h
  63. 0 1
      shell/browser/extensions/electron_extensions_browser_client.h
  64. 0 1
      shell/browser/extensions/electron_messaging_delegate.cc
  65. 0 1
      shell/browser/extensions/electron_process_manager_delegate.cc
  66. 0 1
      shell/browser/extensions/electron_process_manager_delegate.h
  67. 0 1
      shell/browser/file_select_helper.cc
  68. 0 2
      shell/browser/file_select_helper.h
  69. 0 1
      shell/browser/file_system_access/file_system_access_permission_context.cc
  70. 0 1
      shell/browser/font_defaults.cc
  71. 0 1
      shell/browser/hid/electron_hid_delegate.cc
  72. 0 1
      shell/browser/hid/hid_chooser_context.cc
  73. 0 1
      shell/browser/hid/hid_chooser_controller.cc
  74. 0 1
      shell/browser/linux/unity_service.cc
  75. 0 1
      shell/browser/login_handler.h
  76. 0 1
      shell/browser/mac/electron_application_delegate.mm
  77. 0 1
      shell/browser/mac/in_app_purchase_observer.mm
  78. 0 1
      shell/browser/microtasks_runner.cc
  79. 0 1
      shell/browser/native_window_mac.mm
  80. 1 3
      shell/browser/native_window_views.cc
  81. 0 1
      shell/browser/net/asar/asar_url_loader.cc
  82. 1 0
      shell/browser/net/electron_url_loader_factory.cc
  83. 9 1
      shell/browser/net/electron_url_loader_factory.h
  84. 4 1
      shell/browser/net/network_context_service.h
  85. 0 1
      shell/browser/net/network_context_service_factory.h
  86. 0 1
      shell/browser/net/proxying_url_loader_factory.cc
  87. 0 1
      shell/browser/net/resolve_host_function.cc
  88. 0 1
      shell/browser/net/system_network_context_manager.cc
  89. 0 1
      shell/browser/net/system_network_context_manager.h
  90. 0 1
      shell/browser/notifications/mac/cocoa_notification.mm
  91. 0 1
      shell/browser/notifications/platform_notification_service.cc
  92. 0 1
      shell/browser/notifications/win/windows_toast_notification.cc
  93. 0 1
      shell/browser/osr/osr_host_display_client.cc
  94. 0 1
      shell/browser/osr/osr_render_widget_host_view.cc
  95. 0 1
      shell/browser/plugins/plugin_utils.cc
  96. 0 1
      shell/browser/printing/print_view_manager_electron.h
  97. 1 0
      shell/browser/relauncher.cc
  98. 1 1
      shell/browser/relauncher_linux.cc
  99. 1 1
      shell/browser/relauncher_mac.cc
  100. 0 1
      shell/browser/relauncher_win.cc

+ 0 - 3
shell/app/electron_content_client.cc

@@ -11,10 +11,7 @@
 
 #include "base/command_line.h"
 #include "base/files/file_util.h"
-#include "base/path_service.h"
 #include "base/strings/string_split.h"
-#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
 #include "content/public/common/content_constants.h"
 #include "content/public/common/content_switches.h"
 #include "electron/buildflags/buildflags.h"

+ 0 - 3
shell/app/electron_crash_reporter_client.cc

@@ -7,13 +7,10 @@
 #include <map>
 #include <string>
 
-#include "base/command_line.h"
 #include "base/environment.h"
 #include "base/files/file_path.h"
 #include "base/files/file_util.h"
-#include "base/logging.h"
 #include "base/path_service.h"
-#include "base/strings/string_split.h"
 #include "base/strings/utf_string_conversions.h"
 #include "build/build_config.h"
 #include "chrome/common/chrome_paths.h"

+ 0 - 1
shell/app/electron_crash_reporter_client.h

@@ -8,7 +8,6 @@
 #include <map>
 #include <string>
 
-#include "base/compiler_specific.h"
 #include "base/no_destructor.h"
 #include "build/build_config.h"
 #include "components/crash/core/app/crash_reporter_client.h"

+ 0 - 1
shell/app/electron_library_main.h

@@ -6,7 +6,6 @@
 #define ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
 
 #include "build/build_config.h"
-#include "electron/buildflags/buildflags.h"
 
 #if BUILDFLAG(IS_MAC)
 extern "C" {

+ 0 - 1
shell/app/electron_main_delegate.cc

@@ -18,7 +18,6 @@
 #include "base/files/file_util.h"
 #include "base/logging.h"
 #include "base/path_service.h"
-#include "base/strings/string_split.h"
 #include "chrome/common/chrome_paths.h"
 #include "chrome/common/chrome_switches.h"
 #include "components/content_settings/core/common/content_settings_pattern.h"

+ 0 - 1
shell/app/electron_main_linux.cc

@@ -10,7 +10,6 @@
 #include "base/command_line.h"
 #include "base/i18n/icu_util.h"
 #include "content/public/app/content_main.h"
-#include "electron/buildflags/buildflags.h"
 #include "electron/fuses.h"
 #include "shell/app/electron_main_delegate.h"  // NOLINT
 #include "shell/app/node_main.h"

+ 0 - 1
shell/app/electron_main_mac.cc

@@ -5,7 +5,6 @@
 #include <cstdlib>
 #include <memory>
 
-#include "electron/buildflags/buildflags.h"
 #include "electron/fuses.h"
 #include "shell/app/electron_library_main.h"
 #include "shell/app/uv_stdio_fix.h"

+ 0 - 1
shell/app/electron_main_win.cc

@@ -17,7 +17,6 @@
 #include <vector>
 
 #include "base/at_exit.h"
-#include "base/environment.h"
 #include "base/i18n/icu_util.h"
 #include "base/memory/raw_ptr_exclusion.h"
 #include "base/process/launch.h"

+ 0 - 2
shell/app/node_main.cc

@@ -16,8 +16,6 @@
 #include "base/containers/fixed_flat_set.h"
 #include "base/environment.h"
 #include "base/feature_list.h"
-#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
 #include "base/task/single_thread_task_runner.h"
 #include "base/task/thread_pool/thread_pool_instance.h"
 #include "content/public/common/content_switches.h"

+ 0 - 1
shell/app/uv_task_runner.cc

@@ -5,7 +5,6 @@
 #include <utility>
 
 #include "base/location.h"
-#include "base/stl_util.h"
 #include "base/time/time.h"
 #include "shell/app/uv_task_runner.h"
 

+ 1 - 0
shell/browser/api/electron_api_app.cc

@@ -70,6 +70,7 @@
 #include "shell/common/gin_converters/file_path_converter.h"
 #include "shell/common/gin_converters/gurl_converter.h"
 #include "shell/common/gin_converters/image_converter.h"
+#include "shell/common/gin_converters/login_item_settings_converter.h"
 #include "shell/common/gin_converters/net_converter.h"
 #include "shell/common/gin_converters/value_converter.h"
 #include "shell/common/gin_helper/dictionary.h"

+ 0 - 1
shell/browser/api/electron_api_auto_updater.cc

@@ -5,7 +5,6 @@
 #include "shell/browser/api/electron_api_auto_updater.h"
 
 #include "base/time/time.h"
-#include "shell/browser/browser.h"
 #include "shell/browser/javascript_environment.h"
 #include "shell/browser/native_window.h"
 #include "shell/browser/window_list.h"

+ 0 - 1
shell/browser/api/electron_api_crash_reporter.cc

@@ -10,7 +10,6 @@
 #include <utility>
 #include <vector>
 
-#include "base/command_line.h"
 #include "base/functional/bind.h"
 #include "base/no_destructor.h"
 #include "base/path_service.h"

+ 0 - 1
shell/browser/api/electron_api_data_pipe_holder.cc

@@ -7,7 +7,6 @@
 #include <utility>
 #include <vector>
 
-#include "base/memory/raw_ptr.h"
 #include "base/memory/weak_ptr.h"
 #include "base/no_destructor.h"
 #include "base/strings/string_number_conversions.h"

+ 4 - 1
shell/browser/api/electron_api_debugger.h

@@ -12,7 +12,6 @@
 #include "base/values.h"
 #include "content/public/browser/devtools_agent_host_client.h"
 #include "content/public/browser/web_contents_observer.h"
-#include "gin/arguments.h"
 #include "gin/handle.h"
 #include "gin/wrappable.h"
 #include "shell/browser/event_emitter_mixin.h"
@@ -23,6 +22,10 @@ class DevToolsAgentHost;
 class WebContents;
 }  // namespace content
 
+namespace gin {
+class Arguments;
+}  // namespace gin
+
 namespace electron::api {
 
 class Debugger : public gin::Wrappable<Debugger>,

+ 0 - 2
shell/browser/api/electron_api_global_shortcut.cc

@@ -7,8 +7,6 @@
 #include <vector>
 
 #include "base/containers/contains.h"
-#include "base/stl_util.h"
-#include "base/strings/utf_string_conversions.h"
 #include "extensions/common/command.h"
 #include "gin/dictionary.h"
 #include "gin/object_template_builder.h"

+ 4 - 1
shell/browser/api/electron_api_menu.h

@@ -10,13 +10,16 @@
 
 #include "base/functional/callback.h"
 #include "base/memory/raw_ptr.h"
-#include "gin/arguments.h"
 #include "shell/browser/api/electron_api_base_window.h"
 #include "shell/browser/event_emitter_mixin.h"
 #include "shell/browser/ui/electron_menu_model.h"
 #include "shell/common/gin_helper/constructible.h"
 #include "shell/common/gin_helper/pinnable.h"
 
+namespace gin {
+class Arguments;
+}  // namespace gin
+
 namespace electron::api {
 
 class Menu : public gin::Wrappable<Menu>,

+ 0 - 1
shell/browser/api/electron_api_menu_mac.mm

@@ -12,7 +12,6 @@
 #include "base/task/current_thread.h"
 #include "base/task/sequenced_task_runner.h"
 #include "content/public/browser/browser_task_traits.h"
-#include "content/public/browser/browser_thread.h"
 #include "content/public/browser/web_contents.h"
 #include "shell/browser/native_window.h"
 #include "shell/common/keyboard_util.h"

+ 0 - 1
shell/browser/api/electron_api_native_theme.cc

@@ -13,7 +13,6 @@
 #include "shell/common/gin_helper/dictionary.h"
 #include "shell/common/gin_helper/object_template_builder.h"
 #include "shell/common/node_includes.h"
-#include "ui/gfx/color_utils.h"
 #include "ui/native_theme/native_theme.h"
 
 namespace electron::api {

+ 0 - 1
shell/browser/api/electron_api_notification.cc

@@ -4,7 +4,6 @@
 
 #include "shell/browser/api/electron_api_notification.h"
 
-#include "base/strings/utf_string_conversions.h"
 #include "base/uuid.h"
 #include "gin/handle.h"
 #include "shell/browser/api/electron_api_menu.h"

+ 0 - 1
shell/browser/api/electron_api_notification.h

@@ -9,7 +9,6 @@
 #include <vector>
 
 #include "base/memory/raw_ptr.h"
-#include "base/strings/utf_string_conversions.h"
 #include "gin/wrappable.h"
 #include "shell/browser/event_emitter_mixin.h"
 #include "shell/browser/notifications/notification.h"

+ 1 - 0
shell/browser/api/electron_api_power_monitor_win.cc

@@ -10,6 +10,7 @@
 #include "base/win/windows_types.h"
 #include "base/win/wrapped_window_proc.h"
 #include "content/public/browser/browser_task_traits.h"
+#include "content/public/browser/browser_thread.h"
 #include "ui/base/win/shell.h"
 #include "ui/gfx/win/hwnd_util.h"
 

+ 0 - 1
shell/browser/api/electron_api_protocol.cc

@@ -8,7 +8,6 @@
 #include <vector>
 
 #include "base/command_line.h"
-#include "base/stl_util.h"
 #include "content/common/url_schemes.h"
 #include "content/public/browser/child_process_security_policy.h"
 #include "gin/object_template_builder.h"

+ 4 - 0
shell/browser/api/electron_api_protocol.h

@@ -15,6 +15,10 @@
 #include "shell/browser/net/electron_url_loader_factory.h"
 #include "shell/common/gin_helper/constructible.h"
 
+namespace gin {
+class Arguments;
+}  // namespace gin
+
 namespace electron {
 
 class ElectronBrowserContext;

+ 0 - 1
shell/browser/api/electron_api_screen.cc

@@ -8,7 +8,6 @@
 #include <string_view>
 
 #include "base/functional/bind.h"
-#include "gin/dictionary.h"
 #include "gin/handle.h"
 #include "shell/browser/browser.h"
 #include "shell/common/gin_converters/callback_converter.h"

+ 0 - 1
shell/browser/api/electron_api_service_worker_context.cc

@@ -19,7 +19,6 @@
 #include "shell/common/gin_converters/gurl_converter.h"
 #include "shell/common/gin_converters/value_converter.h"
 #include "shell/common/gin_helper/dictionary.h"
-#include "shell/common/gin_helper/function_template_extensions.h"
 #include "shell/common/node_includes.h"
 
 namespace electron::api {

+ 0 - 1
shell/browser/api/electron_api_session.cc

@@ -16,7 +16,6 @@
 #include "base/files/file_enumerator.h"
 #include "base/files/file_path.h"
 #include "base/files/file_util.h"
-#include "base/memory/raw_ptr.h"
 #include "base/scoped_observation.h"
 #include "base/strings/string_util.h"
 #include "base/strings/stringprintf.h"

+ 1 - 1
shell/browser/api/electron_api_session.h

@@ -10,6 +10,7 @@
 #include <vector>
 
 #include "base/memory/raw_ptr.h"
+#include "base/memory/raw_ref.h"
 #include "base/memory/weak_ptr.h"
 #include "base/values.h"
 #include "content/public/browser/download_manager.h"
@@ -23,7 +24,6 @@
 #include "shell/common/gin_helper/cleaned_up_at_exit.h"
 #include "shell/common/gin_helper/constructible.h"
 #include "shell/common/gin_helper/error_thrower.h"
-#include "shell/common/gin_helper/function_template_extensions.h"
 #include "shell/common/gin_helper/pinnable.h"
 #include "shell/common/gin_helper/promise.h"
 

+ 0 - 3
shell/browser/api/electron_api_system_preferences.cc

@@ -7,11 +7,8 @@
 #include "shell/common/gin_converters/callback_converter.h"
 #include "shell/common/gin_converters/value_converter.h"
 #include "shell/common/gin_helper/dictionary.h"
-#include "shell/common/gin_helper/function_template_extensions.h"
 #include "shell/common/node_includes.h"
 #include "ui/gfx/animation/animation.h"
-#include "ui/gfx/color_utils.h"
-#include "ui/native_theme/native_theme.h"
 
 namespace electron::api {
 

+ 0 - 2
shell/browser/api/electron_api_system_preferences_mac.mm

@@ -14,7 +14,6 @@
 
 #include "base/apple/scoped_cftyperef.h"
 #include "base/containers/flat_map.h"
-#include "base/strings/stringprintf.h"
 #include "base/strings/sys_string_conversions.h"
 #include "base/task/sequenced_task_runner.h"
 #include "base/values.h"
@@ -28,7 +27,6 @@
 #include "shell/common/node_includes.h"
 #include "shell/common/process_util.h"
 #include "skia/ext/skia_utils_mac.h"
-#include "ui/native_theme/native_theme.h"
 
 namespace gin {
 

+ 0 - 2
shell/browser/api/electron_api_tray.cc

@@ -20,9 +20,7 @@
 #include "shell/common/gin_converters/guid_converter.h"
 #include "shell/common/gin_converters/image_converter.h"
 #include "shell/common/gin_helper/dictionary.h"
-#include "shell/common/gin_helper/function_template_extensions.h"
 #include "shell/common/node_includes.h"
-#include "ui/gfx/image/image.h"
 
 namespace gin {
 

+ 0 - 1
shell/browser/api/electron_api_utility_process.cc

@@ -19,7 +19,6 @@
 #include "content/public/common/result_codes.h"
 #include "gin/handle.h"
 #include "gin/object_template_builder.h"
-#include "gin/wrappable.h"
 #include "mojo/public/cpp/bindings/pending_receiver.h"
 #include "shell/browser/api/message_port.h"
 #include "shell/browser/javascript_environment.h"

+ 0 - 1
shell/browser/api/electron_api_web_contents.cc

@@ -22,7 +22,6 @@
 #include "base/no_destructor.h"
 #include "base/strings/utf_string_conversions.h"
 #include "base/task/current_thread.h"
-#include "base/task/thread_pool.h"
 #include "base/threading/scoped_blocking_call.h"
 #include "base/values.h"
 #include "chrome/browser/browser_process.h"

+ 0 - 1
shell/browser/api/electron_api_web_contents.h

@@ -52,7 +52,6 @@
 #include "shell/common/gin_helper/pinnable.h"
 #include "ui/base/cursor/cursor.h"
 #include "ui/base/models/image_model.h"
-#include "ui/gfx/image/image.h"
 
 #if BUILDFLAG(ENABLE_PRINTING)
 #include "components/printing/browser/print_to_pdf/pdf_print_result.h"

+ 0 - 1
shell/browser/api/electron_api_web_request.cc

@@ -12,7 +12,6 @@
 #include "base/containers/contains.h"
 #include "base/containers/fixed_flat_map.h"
 #include "base/memory/raw_ptr.h"
-#include "base/stl_util.h"
 #include "base/task/sequenced_task_runner.h"
 #include "base/values.h"
 #include "extensions/browser/api/web_request/web_request_resource_type.h"

+ 4 - 2
shell/browser/api/electron_api_web_request.h

@@ -9,9 +9,7 @@
 #include <set>
 
 #include "base/memory/raw_ptr.h"
-#include "base/values.h"
 #include "extensions/common/url_pattern.h"
-#include "gin/arguments.h"
 #include "gin/handle.h"
 #include "gin/wrappable.h"
 #include "shell/browser/net/web_request_api_interface.h"
@@ -20,6 +18,10 @@ namespace content {
 class BrowserContext;
 }
 
+namespace gin {
+class Arguments;
+}
+
 namespace electron::api {
 
 class WebRequest : public gin::Wrappable<WebRequest>, public WebRequestAPI {

+ 0 - 1
shell/browser/api/gpuinfo_manager.cc

@@ -8,7 +8,6 @@
 
 #include "base/memory/singleton.h"
 #include "base/task/single_thread_task_runner.h"
-#include "content/public/browser/browser_thread.h"
 #include "gpu/config/gpu_info_collector.h"
 #include "shell/browser/api/gpu_info_enumerator.h"
 #include "shell/common/gin_converters/value_converter.h"

+ 0 - 1
shell/browser/badging/badge_manager_factory.cc

@@ -6,7 +6,6 @@
 
 #include "base/functional/bind.h"
 #include "base/memory/ptr_util.h"
-#include "base/memory/singleton.h"
 #include "components/keyed_service/content/browser_context_dependency_manager.h"
 #include "shell/browser/badging/badge_manager.h"
 

+ 0 - 2
shell/browser/bluetooth/electron_bluetooth_delegate.h

@@ -11,8 +11,6 @@
 #include <vector>
 
 #include "base/memory/weak_ptr.h"
-#include "base/observer_list.h"
-#include "base/scoped_observation.h"
 #include "content/public/browser/bluetooth_delegate.h"
 #include "content/public/browser/render_frame_host.h"
 #include "third_party/blink/public/mojom/bluetooth/web_bluetooth.mojom-forward.h"

+ 1 - 1
shell/browser/browser.cc

@@ -9,7 +9,6 @@
 #include <utility>
 
 #include "base/files/file_util.h"
-#include "base/no_destructor.h"
 #include "base/path_service.h"
 #include "base/run_loop.h"
 #include "base/task/single_thread_task_runner.h"
@@ -22,6 +21,7 @@
 #include "shell/browser/window_list.h"
 #include "shell/common/application_info.h"
 #include "shell/common/electron_paths.h"
+#include "shell/common/gin_converters/login_item_settings_converter.h"
 #include "shell/common/gin_helper/arguments.h"
 #include "shell/common/thread_restrictions.h"
 

+ 0 - 3
shell/browser/browser.h

@@ -10,14 +10,11 @@
 #include <string>
 #include <vector>
 
-#include "base/compiler_specific.h"
 #include "base/observer_list.h"
 #include "base/task/cancelable_task_tracker.h"
 #include "base/values.h"
-#include "gin/dictionary.h"
 #include "shell/browser/browser_observer.h"
 #include "shell/browser/window_list_observer.h"
-#include "shell/common/gin_converters/login_item_settings_converter.h"
 #include "shell/common/gin_helper/promise.h"
 
 #if BUILDFLAG(IS_WIN)

+ 0 - 1
shell/browser/browser_mac.mm

@@ -30,7 +30,6 @@
 #include "shell/common/application_info.h"
 #include "shell/common/gin_converters/image_converter.h"
 #include "shell/common/gin_converters/login_item_settings_converter.h"
-#include "shell/common/gin_helper/arguments.h"
 #include "shell/common/gin_helper/dictionary.h"
 #include "shell/common/gin_helper/error_thrower.h"
 #include "shell/common/gin_helper/promise.h"

+ 0 - 1
shell/browser/browser_process_impl.h

@@ -13,7 +13,6 @@
 #include <memory>
 #include <string>
 
-#include "base/command_line.h"
 #include "chrome/browser/browser_process.h"
 #include "components/embedder_support/origin_trials/origin_trials_settings_storage.h"
 #include "components/prefs/pref_service.h"

+ 0 - 1
shell/browser/browser_win.cc

@@ -38,7 +38,6 @@
 #include "shell/common/gin_converters/file_path_converter.h"
 #include "shell/common/gin_converters/image_converter.h"
 #include "shell/common/gin_converters/login_item_settings_converter.h"
-#include "shell/common/gin_helper/arguments.h"
 #include "shell/common/gin_helper/dictionary.h"
 #include "shell/common/skia_util.h"
 #include "shell/common/thread_restrictions.h"

+ 0 - 1
shell/browser/certificate_manager_model.h

@@ -10,7 +10,6 @@
 
 #include "base/functional/callback.h"
 #include "base/memory/raw_ptr.h"
-#include "base/memory/ref_counted.h"
 #include "net/cert/nss_cert_database.h"
 
 // CertificateManagerModel provides the data to be displayed in the certificate

+ 0 - 4
shell/browser/electron_browser_client.cc

@@ -16,15 +16,11 @@
 #include "base/debug/crash_logging.h"
 #include "base/environment.h"
 #include "base/files/file_util.h"
-#include "base/json/json_reader.h"
 #include "base/no_destructor.h"
 #include "base/path_service.h"
-#include "base/stl_util.h"
 #include "base/strings/escape.h"
-#include "base/strings/strcat.h"
 #include "base/strings/string_number_conversions.h"
 #include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
 #include "chrome/browser/browser_process.h"
 #include "chrome/common/chrome_paths.h"
 #include "chrome/common/chrome_switches.h"

+ 0 - 1
shell/browser/electron_browser_main_parts.cc

@@ -19,7 +19,6 @@
 #include "base/path_service.h"
 #include "base/run_loop.h"
 #include "base/strings/string_number_conversions.h"
-#include "base/strings/utf_string_conversions.h"
 #include "base/task/single_thread_task_runner.h"
 #include "chrome/browser/icon_manager.h"
 #include "chrome/browser/ui/color/chrome_color_mixers.h"

+ 0 - 1
shell/browser/electron_browser_main_parts.h

@@ -11,7 +11,6 @@
 
 #include "base/functional/callback.h"
 #include "base/task/single_thread_task_runner.h"
-#include "base/timer/timer.h"
 #include "content/public/browser/browser_context.h"
 #include "content/public/browser/browser_main_parts.h"
 #include "electron/buildflags/buildflags.h"

+ 0 - 1
shell/browser/electron_browser_main_parts_mac.mm

@@ -8,7 +8,6 @@
 
 #include "base/apple/bundle_locations.h"
 #include "base/apple/foundation_util.h"
-#include "base/path_service.h"
 #include "services/device/public/cpp/geolocation/geolocation_system_permission_manager.h"
 #include "services/device/public/cpp/geolocation/system_geolocation_source_apple.h"
 #include "shell/browser/browser_process_impl.h"

+ 1 - 1
shell/browser/electron_browser_main_parts_posix.cc

@@ -14,11 +14,11 @@
 #include <sys/resource.h>
 #include <unistd.h>
 
+#include "base/compiler_specific.h"
 #include "base/debug/leak_annotations.h"
 #include "base/posix/eintr_wrapper.h"
 #include "base/threading/platform_thread.h"
 #include "content/public/browser/browser_task_traits.h"
-#include "content/public/browser/browser_thread.h"
 #include "shell/browser/browser.h"
 
 namespace electron {

+ 0 - 1
shell/browser/electron_permission_manager.h

@@ -11,7 +11,6 @@
 #include "base/containers/id_map.h"
 #include "base/functional/callback.h"
 #include "content/public/browser/permission_controller_delegate.h"
-#include "gin/dictionary.h"
 #include "shell/browser/electron_browser_context.h"
 #include "shell/common/gin_helper/dictionary.h"
 

+ 1 - 1
shell/browser/electron_web_ui_controller_factory.cc

@@ -4,10 +4,10 @@
 
 #include "shell/browser/electron_web_ui_controller_factory.h"
 
+#include "base/memory/singleton.h"
 #include "chrome/common/webui_url_constants.h"
 #include "content/public/browser/web_contents.h"
 #include "content/public/browser/web_ui_controller.h"
-#include "electron/buildflags/buildflags.h"
 #include "shell/browser/ui/devtools_ui.h"
 #include "shell/browser/ui/webui/accessibility_ui.h"
 

+ 4 - 3
shell/browser/extended_web_contents_observer.h

@@ -6,11 +6,12 @@
 #define ELECTRON_SHELL_BROWSER_EXTENDED_WEB_CONTENTS_OBSERVER_H_
 
 #include <string>
-#include <vector>
 
-#include "base/observer_list.h"
 #include "electron/shell/common/api/api.mojom.h"
-#include "ui/gfx/geometry/rect.h"
+
+namespace gfx {
+class Rect;
+}
 
 namespace electron {
 

+ 0 - 1
shell/browser/extensions/api/extension_action/extension_action_api.cc

@@ -11,7 +11,6 @@
 
 #include "base/functional/bind.h"
 #include "base/no_destructor.h"
-#include "base/observer_list.h"
 #include "extensions/browser/event_router.h"
 #include "extensions/browser/extension_prefs.h"
 #include "extensions/browser/extension_util.h"

+ 0 - 2
shell/browser/extensions/api/extension_action/extension_action_api.h

@@ -8,8 +8,6 @@
 #include <string>
 
 #include "base/memory/raw_ptr.h"
-#include "base/observer_list.h"
-#include "base/values.h"
 #include "extensions/browser/browser_context_keyed_api_factory.h"
 #include "extensions/browser/extension_action.h"
 #include "extensions/browser/extension_function.h"

+ 0 - 1
shell/browser/extensions/api/management/electron_management_api_delegate.cc

@@ -10,7 +10,6 @@
 #include <utility>
 
 #include "base/functional/bind.h"
-#include "base/strings/strcat.h"
 #include "base/strings/stringprintf.h"
 #include "base/strings/utf_string_conversions.h"
 #include "chrome/common/extensions/extension_metrics.h"

+ 0 - 1
shell/browser/extensions/api/resources_private/resources_private_api.cc

@@ -14,7 +14,6 @@
 #include "components/strings/grit/components_strings.h"
 #include "components/zoom/page_zoom_constants.h"
 #include "electron/buildflags/buildflags.h"
-#include "printing/buildflags/buildflags.h"
 #include "ui/base/l10n/l10n_util.h"
 #include "ui/base/webui/web_ui_util.h"
 

+ 0 - 1
shell/browser/extensions/api/scripting/scripting_api.cc

@@ -15,7 +15,6 @@
 #include "base/types/optional_util.h"
 #include "chrome/common/extensions/api/scripting.h"
 #include "content/public/browser/browser_task_traits.h"
-#include "content/public/browser/browser_thread.h"
 #include "content/public/browser/navigation_controller.h"
 #include "content/public/browser/navigation_entry.h"
 #include "extensions/browser/extension_api_frame_id_map.h"

+ 0 - 2
shell/browser/extensions/electron_component_extension_resource_manager.cc

@@ -8,9 +8,7 @@
 #include <utility>
 
 #include "base/containers/contains.h"
-#include "base/logging.h"
 #include "base/path_service.h"
-#include "base/stl_util.h"
 #include "base/values.h"
 #include "build/build_config.h"
 #include "chrome/common/chrome_paths.h"

+ 0 - 1
shell/browser/extensions/electron_extension_loader.h

@@ -10,7 +10,6 @@
 
 #include "base/functional/callback.h"
 #include "base/memory/raw_ptr.h"
-#include "base/memory/ref_counted.h"
 #include "base/memory/weak_ptr.h"
 #include "extensions/browser/extension_registrar.h"
 #include "extensions/common/extension_id.h"

+ 0 - 2
shell/browser/extensions/electron_extension_system.cc

@@ -10,7 +10,6 @@
 #include <utility>
 
 #include "base/files/file_path.h"
-#include "base/files/file_util.h"
 #include "base/functional/bind.h"
 #include "base/json/json_string_value_serializer.h"
 #include "base/path_service.h"
@@ -33,7 +32,6 @@
 #include "extensions/browser/service_worker_manager.h"
 #include "extensions/browser/user_script_manager.h"
 #include "extensions/common/constants.h"
-#include "extensions/common/file_util.h"
 #include "shell/browser/extensions/electron_extension_loader.h"
 
 #if BUILDFLAG(ENABLE_PDF_VIEWER)

+ 0 - 2
shell/browser/extensions/electron_extension_system.h

@@ -8,9 +8,7 @@
 #include <memory>
 #include <string>
 
-#include "base/compiler_specific.h"
 #include "base/memory/raw_ptr.h"
-#include "base/memory/ref_counted.h"
 #include "base/memory/weak_ptr.h"
 #include "base/one_shot_event.h"
 #include "components/value_store/value_store_factory.h"

+ 0 - 1
shell/browser/extensions/electron_extensions_browser_client.h

@@ -9,7 +9,6 @@
 #include <string>
 #include <vector>
 
-#include "base/compiler_specific.h"
 #include "build/build_config.h"
 #include "extensions/browser/extensions_browser_client.h"
 #include "extensions/browser/kiosk/kiosk_delegate.h"

+ 0 - 1
shell/browser/extensions/electron_messaging_delegate.cc

@@ -8,7 +8,6 @@
 #include <utility>
 
 #include "base/functional/callback.h"
-#include "base/logging.h"
 #include "base/values.h"
 #include "build/build_config.h"
 #include "components/prefs/pref_service.h"

+ 0 - 1
shell/browser/extensions/electron_process_manager_delegate.cc

@@ -6,7 +6,6 @@
 #include "shell/browser/extensions/electron_process_manager_delegate.h"
 
 #include "base/command_line.h"
-#include "base/logging.h"
 #include "base/one_shot_event.h"
 #include "build/build_config.h"
 #include "content/public/browser/notification_service.h"

+ 0 - 1
shell/browser/extensions/electron_process_manager_delegate.h

@@ -5,7 +5,6 @@
 #ifndef ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_PROCESS_MANAGER_DELEGATE_H_
 #define ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_PROCESS_MANAGER_DELEGATE_H_
 
-#include "base/compiler_specific.h"
 #include "content/public/browser/notification_observer.h"
 #include "content/public/browser/notification_registrar.h"
 #include "extensions/browser/process_manager_delegate.h"

+ 0 - 1
shell/browser/file_select_helper.cc

@@ -13,7 +13,6 @@
 #include "base/files/file_util.h"
 #include "base/functional/bind.h"
 #include "base/memory/ptr_util.h"
-#include "base/strings/string_split.h"
 #include "base/strings/string_util.h"
 #include "base/strings/utf_string_conversions.h"
 #include "base/task/thread_pool.h"

+ 0 - 2
shell/browser/file_select_helper.h

@@ -9,9 +9,7 @@
 #include <string>
 #include <vector>
 
-#include "base/compiler_specific.h"
 #include "base/memory/raw_ptr.h"
-#include "base/scoped_observation.h"
 #include "build/build_config.h"
 #include "content/public/browser/browser_thread.h"
 #include "content/public/browser/render_widget_host.h"

+ 0 - 1
shell/browser/file_system_access/file_system_access_permission_context.cc

@@ -13,7 +13,6 @@
 #include "base/path_service.h"
 #include "base/task/thread_pool.h"
 #include "base/time/time.h"
-#include "base/timer/timer.h"
 #include "base/values.h"
 #include "chrome/browser/browser_process.h"
 #include "chrome/browser/file_system_access/chrome_file_system_access_permission_context.h"  // nogncheck

+ 0 - 1
shell/browser/font_defaults.cc

@@ -8,7 +8,6 @@
 #include <string>
 #include <string_view>
 
-#include "base/stl_util.h"
 #include "base/strings/strcat.h"
 #include "base/strings/utf_string_conversions.h"
 #include "chrome/common/pref_names.h"

+ 0 - 1
shell/browser/hid/electron_hid_delegate.cc

@@ -7,7 +7,6 @@
 #include <string>
 #include <utility>
 
-#include "base/command_line.h"
 #include "base/containers/contains.h"
 #include "base/scoped_observation.h"
 #include "chrome/common/chrome_features.h"

+ 0 - 1
shell/browser/hid/hid_chooser_context.cc

@@ -13,7 +13,6 @@
 #include "base/command_line.h"
 #include "base/containers/contains.h"
 #include "base/containers/map_util.h"
-#include "base/strings/string_util.h"
 #include "base/strings/stringprintf.h"
 #include "base/strings/utf_string_conversions.h"
 #include "base/values.h"

+ 0 - 1
shell/browser/hid/hid_chooser_controller.cc

@@ -21,7 +21,6 @@
 #include "shell/common/gin_converters/content_converter.h"
 #include "shell/common/gin_converters/hid_device_info_converter.h"
 #include "shell/common/gin_converters/value_converter.h"
-#include "shell/common/gin_helper/dictionary.h"
 #include "shell/common/node_includes.h"
 #include "shell/common/process_util.h"
 #include "ui/base/l10n/l10n_util.h"

+ 0 - 1
shell/browser/linux/unity_service.cc

@@ -9,7 +9,6 @@
 
 #include <string>
 
-#include "base/environment.h"
 #include "base/nix/xdg_util.h"
 
 // Unity data typedefs.

+ 0 - 1
shell/browser/login_handler.h

@@ -5,7 +5,6 @@
 #ifndef ELECTRON_SHELL_BROWSER_LOGIN_HANDLER_H_
 #define ELECTRON_SHELL_BROWSER_LOGIN_HANDLER_H_
 
-#include "base/values.h"
 #include "content/public/browser/content_browser_client.h"
 #include "content/public/browser/login_delegate.h"
 #include "content/public/browser/web_contents_observer.h"

+ 0 - 1
shell/browser/mac/electron_application_delegate.mm

@@ -11,7 +11,6 @@
 #include "base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim.h"
 #include "base/mac/mac_util.h"
 #include "base/strings/sys_string_conversions.h"
-#include "base/values.h"
 #include "shell/browser/api/electron_api_push_notifications.h"
 #include "shell/browser/browser.h"
 #include "shell/browser/mac/dict_util.h"

+ 0 - 1
shell/browser/mac/in_app_purchase_observer.mm

@@ -7,7 +7,6 @@
 #include <vector>
 
 #include "base/functional/bind.h"
-#include "base/strings/sys_string_conversions.h"
 #include "content/public/browser/browser_task_traits.h"
 #include "content/public/browser/browser_thread.h"
 

+ 0 - 1
shell/browser/microtasks_runner.cc

@@ -6,7 +6,6 @@
 #include "shell/browser/microtasks_runner.h"
 
 #include "shell/browser/electron_browser_main_parts.h"
-#include "shell/browser/javascript_environment.h"
 #include "shell/common/node_includes.h"
 #include "v8/include/v8.h"
 

+ 0 - 1
shell/browser/native_window_mac.mm

@@ -44,7 +44,6 @@
 #include "third_party/webrtc/modules/desktop_capture/mac/window_list_utils.h"
 #include "ui/base/hit_test.h"
 #include "ui/display/screen.h"
-#include "ui/gfx/skia_util.h"
 #include "ui/gl/gpu_switching_manager.h"
 #include "ui/views/background.h"
 #include "ui/views/cocoa/native_widget_mac_ns_window_host.h"

+ 1 - 3
shell/browser/native_window_views.cc

@@ -21,10 +21,8 @@
 #include <vector>
 
 #include "base/containers/contains.h"
-#include "base/memory/raw_ptr.h"
-#include "base/stl_util.h"
+#include "base/memory/raw_ref.h"
 #include "base/strings/utf_string_conversions.h"
-#include "content/public/browser/browser_thread.h"
 #include "content/public/browser/desktop_media_id.h"
 #include "content/public/common/color_parser.h"
 #include "shell/browser/api/electron_api_web_contents.h"

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

@@ -10,7 +10,6 @@
 #include <utility>
 #include <vector>
 
-#include "base/strings/stringprintf.h"
 #include "base/task/thread_pool.h"
 #include "content/public/browser/file_url_loader.h"
 #include "electron/fuses.h"

+ 1 - 0
shell/browser/net/electron_url_loader_factory.cc

@@ -34,6 +34,7 @@
 #include "shell/common/gin_converters/gurl_converter.h"
 #include "shell/common/gin_converters/net_converter.h"
 #include "shell/common/gin_converters/value_converter.h"
+#include "shell/common/gin_helper/dictionary.h"
 #include "third_party/blink/public/mojom/loader/resource_load_info.mojom-shared.h"
 
 #include "shell/common/node_includes.h"

+ 9 - 1
shell/browser/net/electron_url_loader_factory.h

@@ -21,7 +21,15 @@
 #include "services/network/public/mojom/url_loader.mojom.h"
 #include "services/network/public/mojom/url_loader_factory.mojom.h"
 #include "services/network/public/mojom/url_response_head.mojom.h"
-#include "shell/common/gin_helper/dictionary.h"
+#include "v8/include/v8-array-buffer.h"
+
+namespace gin {
+class Arguments;
+}  // namespace gin
+
+namespace gin_helper {
+class Dictionary;
+}  // namespace gin_helper
 
 namespace electron {
 

+ 4 - 1
shell/browser/net/network_context_service.h

@@ -5,7 +5,6 @@
 #ifndef ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
 #define ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_H_
 
-#include "base/files/file_path.h"
 #include "base/memory/raw_ptr.h"
 #include "chrome/browser/net/proxy_config_monitor.h"
 #include "components/keyed_service/core/keyed_service.h"
@@ -14,6 +13,10 @@
 #include "services/network/public/mojom/network_context.mojom.h"
 #include "shell/browser/electron_browser_context.h"
 
+namespace base {
+class FilePath;
+}  // namespace base
+
 namespace electron {
 
 // KeyedService that initializes and provides access to the NetworkContexts for

+ 0 - 1
shell/browser/net/network_context_service_factory.h

@@ -5,7 +5,6 @@
 #ifndef ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
 #define ELECTRON_SHELL_BROWSER_NET_NETWORK_CONTEXT_SERVICE_FACTORY_H_
 
-#include "base/memory/singleton.h"
 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
 
 class KeyedService;

+ 0 - 1
shell/browser/net/proxying_url_loader_factory.cc

@@ -11,7 +11,6 @@
 #include "base/functional/bind.h"
 #include "base/functional/callback_helpers.h"
 #include "base/strings/string_split.h"
-#include "base/strings/string_util.h"
 #include "base/strings/stringprintf.h"
 #include "content/public/browser/browser_context.h"
 #include "extensions/browser/extension_navigation_ui_data.h"

+ 0 - 1
shell/browser/net/resolve_host_function.cc

@@ -7,7 +7,6 @@
 #include <utility>
 
 #include "base/functional/bind.h"
-#include "base/values.h"
 #include "content/public/browser/browser_context.h"
 #include "content/public/browser/browser_thread.h"
 #include "content/public/browser/storage_partition.h"

+ 0 - 1
shell/browser/net/system_network_context_manager.cc

@@ -12,7 +12,6 @@
 #include "base/command_line.h"
 #include "base/memory/raw_ptr.h"
 #include "base/path_service.h"
-#include "base/strings/string_split.h"
 #include "chrome/browser/browser_process.h"
 #include "chrome/browser/net/chrome_mojo_proxy_resolver_factory.h"
 #include "chrome/common/chrome_features.h"

+ 0 - 1
shell/browser/net/system_network_context_manager.h

@@ -7,7 +7,6 @@
 
 #include <optional>
 
-#include "base/memory/ref_counted.h"
 #include "chrome/browser/net/proxy_config_monitor.h"
 #include "mojo/public/cpp/bindings/remote.h"
 #include "sandbox/policy/features.h"

+ 0 - 1
shell/browser/notifications/mac/cocoa_notification.mm

@@ -10,7 +10,6 @@
 #include "base/logging.h"
 #include "base/mac/mac_util.h"
 #include "base/strings/sys_string_conversions.h"
-#include "base/strings/utf_string_conversions.h"
 #include "shell/browser/notifications/notification_delegate.h"
 #include "shell/browser/notifications/notification_presenter.h"
 #include "skia/ext/skia_utils_mac.h"

+ 0 - 1
shell/browser/notifications/platform_notification_service.cc

@@ -4,7 +4,6 @@
 
 #include "shell/browser/notifications/platform_notification_service.h"
 
-#include "base/strings/utf_string_conversions.h"
 #include "content/public/browser/notification_event_dispatcher.h"
 #include "content/public/browser/render_process_host.h"
 #include "shell/browser/electron_browser_client.h"

+ 0 - 1
shell/browser/notifications/win/windows_toast_notification.cc

@@ -19,7 +19,6 @@
 #include "base/strings/strcat.h"
 #include "base/strings/string_number_conversions.h"
 #include "base/strings/string_util_win.h"
-#include "base/strings/utf_string_conversions.h"
 #include "content/public/browser/browser_task_traits.h"
 #include "content/public/browser/browser_thread.h"
 #include "shell/browser/notifications/notification_delegate.h"

+ 0 - 1
shell/browser/osr/osr_host_display_client.cc

@@ -12,7 +12,6 @@
 #include "third_party/skia/include/core/SkColor.h"
 #include "third_party/skia/include/core/SkRect.h"
 #include "third_party/skia/src/core/SkDevice.h"
-#include "ui/gfx/skia_util.h"
 
 #if BUILDFLAG(IS_WIN)
 #include "skia/ext/skia_utils_win.h"

+ 0 - 1
shell/browser/osr/osr_render_widget_host_view.cc

@@ -41,7 +41,6 @@
 #include "ui/display/screen.h"
 #include "ui/events/base_event_utils.h"
 #include "ui/events/event_constants.h"
-#include "ui/gfx/canvas.h"
 #include "ui/gfx/geometry/dip_util.h"
 #include "ui/gfx/geometry/size_conversions.h"
 #include "ui/gfx/image/image_skia.h"

+ 0 - 1
shell/browser/plugins/plugin_utils.cc

@@ -7,7 +7,6 @@
 #include <vector>
 
 #include "base/containers/contains.h"
-#include "base/values.h"
 #include "content/public/common/webplugininfo.h"
 #include "electron/buildflags/buildflags.h"
 #include "url/gurl.h"

+ 0 - 1
shell/browser/printing/print_view_manager_electron.h

@@ -8,7 +8,6 @@
 #include <string>
 #include <vector>
 
-#include "base/memory/raw_ptr.h"
 #include "base/memory/ref_counted_memory.h"
 #include "build/build_config.h"
 #include "chrome/browser/printing/print_view_manager_base.h"

+ 1 - 0
shell/browser/relauncher.cc

@@ -11,6 +11,7 @@
 #endif
 
 #include "base/files/file_util.h"
+#include "base/files/scoped_file.h"
 #include "base/logging.h"
 #include "base/path_service.h"
 #include "base/process/launch.h"

+ 1 - 1
shell/browser/relauncher_linux.cc

@@ -9,9 +9,9 @@
 #include <sys/prctl.h>
 #include <sys/signalfd.h>
 
-#include "base/files/file_util.h"
 #include "base/files/scoped_file.h"
 #include "base/logging.h"
+#include "base/posix/eintr_wrapper.h"
 #include "base/process/launch.h"
 #include "base/synchronization/waitable_event.h"
 

+ 1 - 1
shell/browser/relauncher_mac.cc

@@ -11,10 +11,10 @@
 
 #include "base/apple/osstatus_logging.h"
 #include "base/files/file_util.h"
+#include "base/files/scoped_file.h"
 #include "base/logging.h"
 #include "base/posix/eintr_wrapper.h"
 #include "base/process/launch.h"
-#include "base/strings/sys_string_conversions.h"
 
 namespace relauncher::internal {
 

+ 0 - 1
shell/browser/relauncher_win.cc

@@ -11,7 +11,6 @@
 #include "base/process/process_handle.h"
 #include "base/strings/strcat_win.h"
 #include "base/strings/string_number_conversions_win.h"
-#include "base/strings/utf_string_conversions.h"
 #include "base/win/scoped_handle.h"
 #include "sandbox/win/src/nt_internals.h"
 #include "sandbox/win/src/win_utils.h"

Some files were not shown because too many files changed in this diff