chore: remove unused base/ includes (#43688)

This commit is contained in:
Charles Kerr 2024-09-12 09:05:37 -05:00 коммит произвёл GitHub
Родитель 3c8321a987
Коммит 45bae950d5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
43 изменённых файлов: 1 добавлений и 49 удалений

Просмотреть файл

@ -36,7 +36,6 @@ TEMPLATE_CC = """
#if DCHECK_IS_ON() #if DCHECK_IS_ON()
#include "base/command_line.h" #include "base/command_line.h"
#include "base/strings/string_util.h"
#include <string> #include <string>
#endif #endif

Просмотреть файл

@ -6,7 +6,6 @@
#include <utility> #include <utility>
#include "base/at_exit.h" #include "base/at_exit.h"
#include "base/base_switches.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/i18n/icu_util.h" #include "base/i18n/icu_util.h"
#include "content/public/app/content_main.h" #include "content/public/app/content_main.h"

Просмотреть файл

@ -10,7 +10,6 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "base/functional/bind.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
@ -39,7 +38,6 @@
#endif #endif
#if BUILDFLAG(IS_LINUX) #if BUILDFLAG(IS_LINUX)
#include "base/containers/span.h"
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/uuid.h" #include "base/uuid.h"
#include "components/crash/core/common/crash_keys.h" #include "components/crash/core/common/crash_keys.h"

Просмотреть файл

@ -9,7 +9,6 @@
#include <vector> #include <vector>
#include "base/containers/flat_map.h" #include "base/containers/flat_map.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h" #include "base/threading/thread_restrictions.h"
#include "chrome/browser/media/webrtc/desktop_capturer_wrapper.h" #include "chrome/browser/media/webrtc/desktop_capturer_wrapper.h"
@ -43,6 +42,7 @@
#endif #endif
#if BUILDFLAG(IS_MAC) #if BUILDFLAG(IS_MAC)
#include "base/strings/string_number_conversions.h"
#include "ui/base/cocoa/permissions_utils.h" #include "ui/base/cocoa/permissions_utils.h"
#endif #endif

Просмотреть файл

@ -7,7 +7,6 @@
#include <string_view> #include <string_view>
#include <utility> #include <utility>
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/browser_process.h" #include "chrome/browser/browser_process.h"
#include "content/public/browser/console_message.h" #include "content/public/browser/console_message.h"
#include "content/public/browser/storage_partition.h" #include "content/public/browser/storage_partition.h"

Просмотреть файл

@ -10,7 +10,6 @@
#include "base/containers/contains.h" #include "base/containers/contains.h"
#include "base/containers/to_vector.h" #include "base/containers/to_vector.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/single_thread_task_runner.h" #include "base/task/single_thread_task_runner.h"
#include "gin/arguments.h" #include "gin/arguments.h"
#include "gin/data_object_builder.h" #include "gin/data_object_builder.h"

Просмотреть файл

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

Просмотреть файл

@ -10,7 +10,6 @@
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h" #include "base/task/single_thread_task_runner.h"
#include "base/threading/thread_restrictions.h" #include "base/threading/thread_restrictions.h"
#include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_paths.h"

Просмотреть файл

@ -7,7 +7,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "base/functional/bind.h"
#include "content/public/browser/navigation_handle.h" #include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h" #include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"

Просмотреть файл

@ -22,7 +22,6 @@
#include "base/path_service.h" #include "base/path_service.h"
#include "base/process/process_metrics.h" #include "base/process/process_metrics.h"
#include "base/strings/escape.h" #include "base/strings/escape.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "chrome/browser/browser_process.h" #include "chrome/browser/browser_process.h"
#include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_paths.h"

Просмотреть файл

@ -9,7 +9,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "base/functional/bind.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "extensions/browser/event_router.h" #include "extensions/browser/event_router.h"
#include "extensions/browser/extension_prefs.h" #include "extensions/browser/extension_prefs.h"

Просмотреть файл

@ -9,9 +9,7 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include "base/functional/bind.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/extensions/extension_metrics.h" #include "chrome/common/extensions/extension_metrics.h"
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h" #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "chrome/common/webui_url_constants.h" #include "chrome/common/webui_url_constants.h"

Просмотреть файл

@ -8,7 +8,6 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include "base/logging.h"
#include "extensions/browser/media_capture_util.h" #include "extensions/browser/media_capture_util.h"
#include "shell/browser/api/electron_api_web_contents.h" #include "shell/browser/api/electron_api_web_contents.h"
#include "shell/browser/extensions/electron_extension_web_contents_observer.h" #include "shell/browser/extensions/electron_extension_web_contents_observer.h"

Просмотреть файл

@ -11,7 +11,6 @@
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/functional/bind.h" #include "base/functional/bind.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/task/sequenced_task_runner.h" #include "base/task/sequenced_task_runner.h"
#include "base/threading/thread_restrictions.h" #include "base/threading/thread_restrictions.h"

Просмотреть файл

@ -10,7 +10,6 @@
#include <utility> #include <utility>
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/json/json_string_value_serializer.h" #include "base/json/json_string_value_serializer.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/values.h" #include "base/values.h"

Просмотреть файл

@ -5,7 +5,6 @@
#include "shell/browser/extensions/electron_process_manager_delegate.h" #include "shell/browser/extensions/electron_process_manager_delegate.h"
#include "base/command_line.h"
#include "base/one_shot_event.h" #include "base/one_shot_event.h"
#include "extensions/browser/extension_system.h" #include "extensions/browser/extension_system.h"
#include "extensions/browser/process_manager.h" #include "extensions/browser/process_manager.h"

Просмотреть файл

@ -4,7 +4,6 @@
#include "shell/browser/fake_location_provider.h" #include "shell/browser/fake_location_provider.h"
#include "base/time/time.h"
#include "services/device/public/mojom/geoposition.mojom-shared.h" #include "services/device/public/mojom/geoposition.mojom-shared.h"
#include "services/device/public/mojom/geoposition.mojom.h" #include "services/device/public/mojom/geoposition.mojom.h"

Просмотреть файл

@ -4,7 +4,6 @@
#include "shell/browser/file_system_access/file_system_access_permission_context_factory.h" #include "shell/browser/file_system_access/file_system_access_permission_context_factory.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h" #include "components/keyed_service/content/browser_context_dependency_manager.h"

Просмотреть файл

@ -14,7 +14,6 @@
#include "base/bits.h" #include "base/bits.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/no_destructor.h"
#include "base/task/current_thread.h" #include "base/task/current_thread.h"
#include "base/task/single_thread_task_runner.h" #include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool/initialization_util.h" #include "base/task/thread_pool/initialization_util.h"

Просмотреть файл

@ -10,7 +10,6 @@
#include <vector> #include <vector>
#include "base/logging.h" #include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "crypto/sha2.h" #include "crypto/sha2.h"

Просмотреть файл

@ -14,7 +14,6 @@
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/hash/md5.h" #include "base/hash/md5.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/time/time.h" #include "base/time/time.h"
#include "shell/browser/notifications/win/windows_toast_notification.h" #include "shell/browser/notifications/win/windows_toast_notification.h"

Просмотреть файл

@ -17,7 +17,6 @@
#include "base/hash/hash.h" #include "base/hash/hash.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/strings/strcat.h" #include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util_win.h" #include "base/strings/string_util_win.h"
#include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h" #include "content/public/browser/browser_thread.h"

Просмотреть файл

@ -7,7 +7,6 @@
#include <algorithm> #include <algorithm>
#include <utility> #include <utility>
#include "base/files/file_path.h"
#include "base/functional/bind.h" #include "base/functional/bind.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"

Просмотреть файл

@ -4,7 +4,6 @@
#include "shell/browser/special_storage_policy.h" #include "shell/browser/special_storage_policy.h"
#include "base/functional/bind.h"
#include "services/network/public/cpp/session_cookie_delete_predicate.h" #include "services/network/public/cpp/session_cookie_delete_predicate.h"
namespace electron { namespace electron {

Просмотреть файл

@ -10,7 +10,6 @@
#include "base/apple/foundation_util.h" #include "base/apple/foundation_util.h"
#include "base/functional/callback.h" #include "base/functional/callback.h"
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h" #include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_task_traits.h"

Просмотреть файл

@ -5,7 +5,6 @@
#include "shell/browser/ui/cocoa/window_buttons_proxy.h" #include "shell/browser/ui/cocoa/window_buttons_proxy.h"
#include "base/i18n/rtl.h" #include "base/i18n/rtl.h"
#include "base/notreached.h"
@implementation ButtonsAreaHoverView : NSView @implementation ButtonsAreaHoverView : NSView

Просмотреть файл

@ -14,7 +14,6 @@
#include "base/memory/raw_ptr.h" #include "base/memory/raw_ptr.h"
#include "base/metrics/histogram.h" #include "base/metrics/histogram.h"
#include "base/strings/pattern.h" #include "base/strings/pattern.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"

Просмотреть файл

@ -8,7 +8,6 @@
#include <glib-object.h> #include <glib-object.h>
#include "base/functional/bind.h" #include "base/functional/bind.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "shell/browser/native_window_views.h" #include "shell/browser/native_window_views.h"

Просмотреть файл

@ -8,7 +8,6 @@
#include <utility> #include <utility>
#include "base/memory/raw_ptr.h" #include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "shell/browser/ui/drag_util.h" #include "shell/browser/ui/drag_util.h"
#include "shell/browser/ui/inspectable_web_contents.h" #include "shell/browser/ui/inspectable_web_contents.h"
#include "shell/browser/ui/inspectable_web_contents_delegate.h" #include "shell/browser/ui/inspectable_web_contents_delegate.h"

Просмотреть файл

@ -6,7 +6,6 @@
#include <algorithm> #include <algorithm>
#include "base/logging.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "shell/browser/native_window.h" #include "shell/browser/native_window.h"
#include "shell/browser/window_list_observer.h" #include "shell/browser/window_list_observer.h"

Просмотреть файл

@ -10,7 +10,6 @@
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/functional/bind.h" #include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#include "components/prefs/json_pref_store.h" #include "components/prefs/json_pref_store.h"
#include "components/prefs/pref_filter.h" #include "components/prefs/pref_filter.h"
#include "components/prefs/pref_registry_simple.h" #include "components/prefs/pref_registry_simple.h"

Просмотреть файл

@ -4,7 +4,6 @@
#include "base/command_line.h" #include "base/command_line.h"
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/strings/string_util.h"
#include "services/network/public/cpp/network_switches.h" #include "services/network/public/cpp/network_switches.h"
#include "shell/common/gin_converters/base_converter.h" #include "shell/common/gin_converters/base_converter.h"
#include "shell/common/gin_converters/file_path_converter.h" #include "shell/common/gin_converters/file_path_converter.h"

Просмотреть файл

@ -14,10 +14,8 @@
#include "base/check_op.h" #include "base/check_op.h"
#include "base/containers/fixed_flat_map.h" #include "base/containers/fixed_flat_map.h"
#include "base/memory/raw_ptr.h" #include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"
#include "base/notreached.h" #include "base/notreached.h"
#include "base/sequence_checker.h" #include "base/sequence_checker.h"
#include "base/strings/string_number_conversions.h"
#include "gin/handle.h" #include "gin/handle.h"
#include "gin/object_template_builder.h" #include "gin/object_template_builder.h"
#include "gin/wrappable.h" #include "gin/wrappable.h"

Просмотреть файл

@ -13,7 +13,6 @@
#include <memory> #include <memory>
#include "base/file_version_info.h" #include "base/file_version_info.h"
#include "base/notreached.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "base/strings/string_util_win.h" #include "base/strings/string_util_win.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"

Просмотреть файл

@ -7,7 +7,6 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "content/public/common/color_parser.h" #include "content/public/common/color_parser.h"

Просмотреть файл

@ -7,7 +7,6 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include "base/logging.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "components/version_info/version_info.h" #include "components/version_info/version_info.h"
#include "content/public/common/user_agent.h" #include "content/public/common/user_agent.h"

Просмотреть файл

@ -11,7 +11,6 @@
#include "base/containers/span.h" #include "base/containers/span.h"
#include "base/memory/raw_ptr.h" #include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "base/values.h" #include "base/values.h"
#include "gin/converter.h" #include "gin/converter.h"

Просмотреть файл

@ -7,7 +7,6 @@
#include <vector> #include <vector>
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "shell/common/gin_helper/cleaned_up_at_exit.h" #include "shell/common/gin_helper/cleaned_up_at_exit.h"
#include "shell/common/gin_helper/event_emitter.h" #include "shell/common/gin_helper/event_emitter.h"

Просмотреть файл

@ -4,7 +4,6 @@
#include "shell/common/gin_helper/wrappable.h" #include "shell/common/gin_helper/wrappable.h"
#include "base/logging.h"
#include "shell/common/gin_helper/dictionary.h" #include "shell/common/gin_helper/dictionary.h"
#include "v8/include/v8-function.h" #include "v8/include/v8-function.h"

Просмотреть файл

@ -6,7 +6,6 @@
#include <windows.h> #include <windows.h>
#include "base/logging.h"
#include "base/system/sys_info.h" #include "base/system/sys_info.h"
namespace electron { namespace electron {

Просмотреть файл

@ -2,7 +2,6 @@
// Use of this source code is governed by the MIT license that can be // Use of this source code is governed by the MIT license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "base/functional/bind.h"
#include "shell/common/gin_helper/dictionary.h" #include "shell/common/gin_helper/dictionary.h"
#include "shell/common/node_includes.h" #include "shell/common/node_includes.h"

Просмотреть файл

@ -56,10 +56,6 @@
#include "components/pdf/renderer/internal_plugin_renderer_helpers.h" #include "components/pdf/renderer/internal_plugin_renderer_helpers.h"
#endif // BUILDFLAG(ENABLE_PDF_VIEWER) #endif // BUILDFLAG(ENABLE_PDF_VIEWER)
#if BUILDFLAG(IS_MAC)
#include "base/strings/sys_string_conversions.h"
#endif
#if BUILDFLAG(IS_WIN) #if BUILDFLAG(IS_WIN)
#include <shlobj.h> #include <shlobj.h>
#endif #endif

Просмотреть файл

@ -7,7 +7,6 @@
#include <utility> #include <utility>
#include "base/command_line.h" #include "base/command_line.h"
#include "base/no_destructor.h"
#include "content/public/utility/utility_thread.h" #include "content/public/utility/utility_thread.h"
#include "mojo/public/cpp/bindings/binder_map.h" #include "mojo/public/cpp/bindings/binder_map.h"
#include "mojo/public/cpp/bindings/service_factory.h" #include "mojo/public/cpp/bindings/service_factory.h"