Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: trim unused STL includes #29414

Merged
merged 1 commit into from Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion chromium_src/chrome/browser/certificate_manager_model.h
Expand Up @@ -5,7 +5,6 @@
#ifndef CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
#define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_

#include <map>
#include <memory>
#include <string>

Expand Down
3 changes: 0 additions & 3 deletions chromium_src/chrome/browser/process_singleton.h
Expand Up @@ -9,9 +9,6 @@
#include <windows.h>
#endif // defined(OS_WIN)

#include <set>
#include <vector>

#include "base/callback.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/app/electron_content_client.h
Expand Up @@ -5,8 +5,6 @@
#ifndef SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
#define SHELL_APP_ELECTRON_CONTENT_CLIENT_H_

#include <set>
#include <string>
#include <vector>

#include "base/files/file_path.h"
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_app.cc
Expand Up @@ -5,8 +5,8 @@
#include "shell/browser/api/electron_api_app.h"

#include <memory>

#include <string>
#include <utility>
#include <vector>

#include "base/callback_helpers.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_app.h
Expand Up @@ -8,7 +8,6 @@
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/task/cancelable_task_tracker.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/api/electron_api_browser_window.cc
Expand Up @@ -4,8 +4,6 @@

#include "shell/browser/api/electron_api_browser_window.h"

#include <memory>

#include "base/threading/thread_task_runner_handle.h"
#include "content/browser/renderer_host/render_widget_host_impl.h" // nogncheck
#include "content/browser/renderer_host/render_widget_host_owner_delegate.h" // nogncheck
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_browser_window.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_API_ELECTRON_API_BROWSER_WINDOW_H_
#define SHELL_BROWSER_API_ELECTRON_API_BROWSER_WINDOW_H_

#include <memory>
#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_cookies.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/api/electron_api_cookies.h"

#include <memory>
#include <utility>

#include "base/time/time.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_cookies.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_API_ELECTRON_API_COOKIES_H_
#define SHELL_BROWSER_API_ELECTRON_API_COOKIES_H_

#include <memory>
#include <string>

#include "base/callback_list.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_debugger.h
Expand Up @@ -6,7 +6,6 @@
#define SHELL_BROWSER_API_ELECTRON_API_DEBUGGER_H_

#include <map>
#include <string>

#include "base/callback.h"
#include "base/values.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_dialog.cc
Expand Up @@ -2,7 +2,6 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

#include <string>
#include <utility>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_download_item.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/api/electron_api_download_item.h"

#include <map>
#include <memory>

#include "base/strings/utf_string_conversions.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_download_item.h
Expand Up @@ -6,7 +6,6 @@
#define SHELL_BROWSER_API_ELECTRON_API_DOWNLOAD_ITEM_H_

#include <string>
#include <vector>

#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_global_shortcut.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/api/electron_api_global_shortcut.h"

#include <string>
#include <vector>

#include "base/stl_util.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_global_shortcut.h
Expand Up @@ -6,7 +6,6 @@
#define SHELL_BROWSER_API_ELECTRON_API_GLOBAL_SHORTCUT_H_

#include <map>
#include <string>
#include <vector>

#include "base/callback.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_menu.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/api/electron_api_menu.h"

#include <map>
#include <utility>

#include "shell/browser/api/ui_event.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_menu_mac.h
Expand Up @@ -8,7 +8,6 @@
#include "shell/browser/api/electron_api_menu.h"

#include <map>
#include <string>

#import "shell/browser/ui/cocoa/electron_menu_controller.h"

Expand Down
1 change: 1 addition & 0 deletions shell/browser/api/electron_api_net_log.cc
Expand Up @@ -4,6 +4,7 @@

#include "shell/browser/api/electron_api_net_log.h"

#include <string>
#include <utility>

#include "base/command_line.h"
Expand Down
4 changes: 0 additions & 4 deletions shell/browser/api/electron_api_net_log.h
Expand Up @@ -5,10 +5,6 @@
#ifndef SHELL_BROWSER_API_ELECTRON_API_NET_LOG_H_
#define SHELL_BROWSER_API_ELECTRON_API_NET_LOG_H_

#include <list>
#include <memory>
#include <string>

#include "base/callback.h"
#include "base/optional.h"
#include "base/values.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_notification.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_API_ELECTRON_API_NOTIFICATION_H_
#define SHELL_BROWSER_API_ELECTRON_API_NOTIFICATION_H_

#include <memory>
#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_power_save_blocker.h
Expand Up @@ -6,7 +6,6 @@
#define SHELL_BROWSER_API_ELECTRON_API_POWER_SAVE_BLOCKER_H_

#include <map>
#include <memory>

#include "gin/handle.h"
#include "gin/object_template_builder.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/api/electron_api_protocol.cc
Expand Up @@ -4,8 +4,6 @@

#include "shell/browser/api/electron_api_protocol.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/command_line.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_screen.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/api/electron_api_screen.h"

#include <algorithm>
#include <string>

#include "base/bind.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_session.cc
Expand Up @@ -5,7 +5,6 @@
#include "shell/browser/api/electron_api_session.h"

#include <algorithm>
#include <map>
#include <memory>
#include <set>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_url_loader.cc
Expand Up @@ -5,7 +5,6 @@
#include "shell/browser/api/electron_api_url_loader.h"

#include <algorithm>
#include <map>
#include <memory>
#include <string>
#include <utility>
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_view.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_API_ELECTRON_API_VIEW_H_
#define SHELL_BROWSER_API_ELECTRON_API_VIEW_H_

#include <memory>
#include <vector>

#include "electron/buildflags/buildflags.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/electron_api_web_frame_main.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_API_ELECTRON_API_WEB_FRAME_MAIN_H_
#define SHELL_BROWSER_API_ELECTRON_API_WEB_FRAME_MAIN_H_

#include <memory>
#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/gpuinfo_manager.h
Expand Up @@ -6,7 +6,6 @@
#define SHELL_BROWSER_API_GPUINFO_MANAGER_H_

#include <memory>
#include <unordered_set>
#include <vector>

#include "content/browser/gpu/gpu_data_manager_impl.h" // nogncheck
Expand Down
1 change: 0 additions & 1 deletion shell/browser/api/save_page_handler.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/api/save_page_handler.h"

#include <string>
#include <utility>

#include "base/callback.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/api/save_page_handler.h
Expand Up @@ -5,8 +5,6 @@
#ifndef SHELL_BROWSER_API_SAVE_PAGE_HANDLER_H_
#define SHELL_BROWSER_API_SAVE_PAGE_HANDLER_H_

#include <string>

#include "components/download/public/common/download_item.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/save_page_type.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/badging/badge_manager.cc
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/badging/badge_manager.h"

#include <tuple>
#include <utility>

#include "base/i18n/number_formatting.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/badging/badge_manager.h
Expand Up @@ -5,10 +5,8 @@
#ifndef SHELL_BROWSER_BADGING_BADGE_MANAGER_H_
#define SHELL_BROWSER_BADGING_BADGE_MANAGER_H_

#include <map>
#include <memory>
#include <string>
#include <vector>

#include "base/macros.h"
#include "base/optional.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/cookie_change_notifier.cc
Expand Up @@ -4,8 +4,6 @@

#include "shell/browser/cookie_change_notifier.h"

#include <utility>

#include "base/bind.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/cookie_change_notifier.h
Expand Up @@ -5,8 +5,6 @@
#ifndef SHELL_BROWSER_COOKIE_CHANGE_NOTIFIER_H_
#define SHELL_BROWSER_COOKIE_CHANGE_NOTIFIER_H_

#include <memory>

#include "base/callback_list.h"
#include "base/macros.h"
#include "mojo/public/cpp/bindings/receiver.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/electron_browser_context.h
Expand Up @@ -8,7 +8,6 @@
#include <map>
#include <memory>
#include <string>
#include <vector>

#include "base/memory/weak_ptr.h"
#include "chrome/browser/predictors/preconnect_manager.h"
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/electron_browser_main_parts.cc
Expand Up @@ -5,7 +5,7 @@
#include "shell/browser/electron_browser_main_parts.h"

#include <memory>

#include <string>
#include <utility>

#include "base/base_switches.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/electron_browser_main_parts.h
Expand Up @@ -5,9 +5,7 @@
#ifndef SHELL_BROWSER_ELECTRON_BROWSER_MAIN_PARTS_H_
#define SHELL_BROWSER_ELECTRON_BROWSER_MAIN_PARTS_H_

#include <list>
#include <memory>
#include <string>

#include "base/callback.h"
#include "base/metrics/field_trial.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/electron_download_manager_delegate.h
Expand Up @@ -5,8 +5,6 @@
#ifndef SHELL_BROWSER_ELECTRON_DOWNLOAD_MANAGER_DELEGATE_H_
#define SHELL_BROWSER_ELECTRON_DOWNLOAD_MANAGER_DELEGATE_H_

#include <string>

#include "base/memory/weak_ptr.h"
#include "content/public/browser/download_manager_delegate.h"
#include "shell/browser/ui/file_dialog.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/electron_permission_manager.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_ELECTRON_PERMISSION_MANAGER_H_
#define SHELL_BROWSER_ELECTRON_PERMISSION_MANAGER_H_

#include <map>
#include <memory>
#include <vector>

Expand Down
Expand Up @@ -4,7 +4,6 @@

#include "shell/browser/electron_speech_recognition_manager_delegate.h"

#include <string>
#include <utility>

#include "base/callback.h"
Expand Down
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_ELECTRON_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
#define SHELL_BROWSER_ELECTRON_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_

#include <string>
#include <vector>

#include "base/macros.h"
Expand Down
2 changes: 0 additions & 2 deletions shell/browser/electron_web_ui_controller_factory.cc
Expand Up @@ -4,8 +4,6 @@

#include "shell/browser/electron_web_ui_controller_factory.h"

#include <string>

#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/web_contents.h"
#include "electron/buildflags/buildflags.h"
Expand Down
1 change: 1 addition & 0 deletions shell/browser/extended_web_contents_observer.h
Expand Up @@ -5,6 +5,7 @@
#ifndef SHELL_BROWSER_EXTENDED_WEB_CONTENTS_OBSERVER_H_
#define SHELL_BROWSER_EXTENDED_WEB_CONTENTS_OBSERVER_H_

#include <string>
#include <vector>

#include "base/observer_list.h"
Expand Down
Expand Up @@ -4,6 +4,7 @@

#include "electron/shell/browser/extensions/api/streams_private/streams_private_api.h"

#include <memory>
#include <utility>

#include "content/public/browser/browser_thread.h"
Expand Down
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
#define SHELL_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_

#include <memory>
#include <string>

#include "base/macros.h"
Expand Down
1 change: 0 additions & 1 deletion shell/browser/extensions/electron_extension_loader.h
Expand Up @@ -5,7 +5,6 @@
#ifndef SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSION_LOADER_H_
#define SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSION_LOADER_H_

#include <memory>
#include <string>
#include <utility>

Expand Down
1 change: 0 additions & 1 deletion shell/browser/extensions/electron_extension_system.h
Expand Up @@ -7,7 +7,6 @@

#include <memory>
#include <string>
#include <vector>

#include "base/compiler_specific.h"
#include "base/macros.h"
Expand Down