Skip to content

Commit

Permalink
Delete unused STL includes from components/ headers.
Browse files Browse the repository at this point in the history
Headers that do not contain "std::" do not need STL includes.

This CL is mechanically generated as follows:

INCL="algorithm|array|list|map|memory|queue|set|string|utility|vector"
git ls-files components | grep '\.h$' | xargs grep -L std:: | \
    xargs grep -El "#include <($INCL)>$" > to_process.txt

INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')"
cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d"
cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D'

Bug: 1200833
Change-Id: I3dd65ac6d5b7d2542df285d752af0bd7a9bd965d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2845086
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#877818}
  • Loading branch information
leizleiz authored and Chromium LUCI CQ committed Apr 30, 2021
1 parent 034ba14 commit 0bf0ff5
Show file tree
Hide file tree
Showing 217 changed files with 0 additions and 470 deletions.
2 changes: 0 additions & 2 deletions components/arc/audio/arc_audio_bridge.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_AUDIO_ARC_AUDIO_BRIDGE_H_
#define COMPONENTS_ARC_AUDIO_ARC_AUDIO_BRIDGE_H_

#include <string>

#include "ash/components/audio/cras_audio_handler.h"
#include "base/macros.h"
#include "components/arc/mojom/audio.mojom.h"
Expand Down
2 changes: 0 additions & 2 deletions components/arc/clipboard/arc_clipboard_bridge.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_CLIPBOARD_ARC_CLIPBOARD_BRIDGE_H_
#define COMPONENTS_ARC_CLIPBOARD_ARC_CLIPBOARD_BRIDGE_H_

#include <string>

#include "base/macros.h"
#include "base/threading/thread_checker.h"
#include "components/arc/mojom/clipboard.mojom.h"
Expand Down
2 changes: 0 additions & 2 deletions components/arc/media_session/arc_media_session_bridge.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_MEDIA_SESSION_ARC_MEDIA_SESSION_BRIDGE_H_
#define COMPONENTS_ARC_MEDIA_SESSION_ARC_MEDIA_SESSION_BRIDGE_H_

#include <string>

#include "base/macros.h"
#include "components/arc/mojom/media_session.mojom.h"
#include "components/arc/session/connection_observer.h"
Expand Down
2 changes: 0 additions & 2 deletions components/arc/midis/arc_midis_bridge.h
Expand Up @@ -7,8 +7,6 @@

#include <stdint.h>

#include <vector>

#include "base/macros.h"
#include "components/arc/mojom/midis.mojom.h"
#include "components/keyed_service/core/keyed_service.h"
Expand Down
2 changes: 0 additions & 2 deletions components/arc/net/always_on_vpn_manager.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_NET_ALWAYS_ON_VPN_MANAGER_H_
#define COMPONENTS_ARC_NET_ALWAYS_ON_VPN_MANAGER_H_

#include <string>

#include "base/macros.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
Expand Down
2 changes: 0 additions & 2 deletions components/arc/storage_manager/arc_storage_manager.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_
#define COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_

#include <memory>

#include "base/callback.h"
#include "base/macros.h"
#include "components/arc/mojom/storage_manager.mojom.h"
Expand Down
2 changes: 0 additions & 2 deletions components/arc/test/fake_accessibility_helper_instance.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_TEST_FAKE_ACCESSIBILITY_HELPER_INSTANCE_H_
#define COMPONENTS_ARC_TEST_FAKE_ACCESSIBILITY_HELPER_INSTANCE_H_

#include <string>

#include "components/arc/mojom/accessibility_helper.mojom.h"
#include "mojo/public/cpp/bindings/pending_remote.h"

Expand Down
2 changes: 0 additions & 2 deletions components/arc/test/fake_timer_instance.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ARC_TEST_FAKE_TIMER_INSTANCE_H_
#define COMPONENTS_ARC_TEST_FAKE_TIMER_INSTANCE_H_

#include <vector>

#include "components/arc/mojom/timer.mojom.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
Expand Down
3 changes: 0 additions & 3 deletions components/assist_ranker/assist_ranker_service.h
Expand Up @@ -5,9 +5,6 @@
#ifndef COMPONENTS_ASSIST_RANKER_ASSIST_RANKER_SERVICE_H_
#define COMPONENTS_ASSIST_RANKER_ASSIST_RANKER_SERVICE_H_

#include <memory>
#include <string>

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/keyed_service/core/keyed_service.h"
Expand Down
2 changes: 0 additions & 2 deletions components/assist_ranker/predictor_config_definitions.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_ASSIST_RANKER_PREDICTOR_CONFIG_DEFINITIONS_H_
#define COMPONENTS_ASSIST_RANKER_PREDICTOR_CONFIG_DEFINITIONS_H_

#include <memory>
#include <string>
#include <unordered_map>

#include "base/feature_list.h"
Expand Down
4 changes: 0 additions & 4 deletions components/autofill/core/browser/field_types.h
Expand Up @@ -5,10 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_FIELD_TYPES_H_

#include <map>
#include <set>
#include <string>

#include "base/strings/string_piece_forward.h"
#include "components/autofill/core/common/dense_set.h"

Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_ACCOUNT_INFO_GETTER_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_ACCOUNT_INFO_GETTER_H_

#include <string>

#include "components/signin/public/identity_manager/account_info.h"

namespace autofill {
Expand Down
2 changes: 0 additions & 2 deletions components/autofill/core/browser/test_autofill_clock.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLOCK_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLOCK_H_

#include <memory>

#include "base/macros.h"
#include "base/test/simple_test_clock.h"

Expand Down
2 changes: 0 additions & 2 deletions components/autofill/core/browser/test_autofill_tick_clock.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_TICK_CLOCK_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_TICK_CLOCK_H_

#include <memory>

#include "base/macros.h"
#include "base/test/simple_test_tick_clock.h"

Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_PAYMENTS_CARD_EXPIRATION_DATE_FIX_FLOW_VIEW_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_PAYMENTS_CARD_EXPIRATION_DATE_FIX_FLOW_VIEW_H_

#include <string>

#include "base/macros.h"

namespace autofill {
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_PAYMENTS_CARD_NAME_FIX_FLOW_VIEW_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_PAYMENTS_CARD_NAME_FIX_FLOW_VIEW_H_

#include <string>

#include "base/macros.h"

namespace autofill {
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_PAYMENTS_LOCAL_CARD_MIGRATION_BUBBLE_CONTROLLER_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_PAYMENTS_LOCAL_CARD_MIGRATION_BUBBLE_CONTROLLER_H_

#include <string>

#include "base/macros.h"
#include "components/autofill/core/browser/ui/payments/payments_bubble_closed_reasons.h"

Expand Down
2 changes: 0 additions & 2 deletions components/autofill/core/common/autofill_payments_features.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_PAYMENTS_FEATURES_H_
#define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_PAYMENTS_FEATURES_H_

#include <string>

#include "base/feature_list.h"
#include "build/build_config.h"

Expand Down
2 changes: 0 additions & 2 deletions components/autofill/core/common/signatures.h
Expand Up @@ -8,8 +8,6 @@
#include <stddef.h>
#include <stdint.h>

#include <string>

#include "base/strings/string_piece.h"
#include "base/util/type_safety/id_type.h"

Expand Down
3 changes: 0 additions & 3 deletions components/autofill_assistant/browser/actions/click_action.h
Expand Up @@ -5,9 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_CLICK_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_CLICK_ACTION_H_

#include <string>
#include <vector>

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill_assistant/browser/actions/action.h"
Expand Down
Expand Up @@ -5,9 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_DISPATCH_JS_EVENT_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_DISPATCH_JS_EVENT_ACTION_H_

#include <string>
#include <vector>

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill_assistant/browser/actions/action.h"
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_EXPECT_NAVIGATION_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_EXPECT_NAVIGATION_ACTION_H_

#include <string>

#include "base/macros.h"
#include "components/autofill_assistant/browser/actions/action.h"

Expand Down
Expand Up @@ -5,9 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_HIGHLIGHT_ELEMENT_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_HIGHLIGHT_ELEMENT_ACTION_H_

#include <string>
#include <vector>

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill_assistant/browser/actions/action.h"
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_NAVIGATE_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_NAVIGATE_ACTION_H_

#include <string>

#include "base/macros.h"
#include "components/autofill_assistant/browser/actions/action.h"

Expand Down
Expand Up @@ -5,10 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_PRESAVE_GENERATED_PASSWORD_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_PRESAVE_GENERATED_PASSWORD_ACTION_H_

#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill_assistant/browser/actions/action.h"
Expand Down
Expand Up @@ -5,10 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SAVE_GENERATED_PASSWORD_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SAVE_GENERATED_PASSWORD_ACTION_H_

#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill_assistant/browser/actions/action.h"
Expand Down
Expand Up @@ -5,9 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SET_ATTRIBUTE_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SET_ATTRIBUTE_ACTION_H_

#include <string>
#include <vector>

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill_assistant/browser/actions/action.h"
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SHOW_DETAILS_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SHOW_DETAILS_ACTION_H_

#include <string>

#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SHOW_FORM_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_SHOW_FORM_ACTION_H_

#include <string>

#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
Expand Down
2 changes: 0 additions & 2 deletions components/autofill_assistant/browser/actions/stop_action.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_STOP_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_STOP_ACTION_H_

#include <string>

#include "base/macros.h"
#include "components/autofill_assistant/browser/actions/action.h"

Expand Down
2 changes: 0 additions & 2 deletions components/autofill_assistant/browser/actions/tell_action.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_TELL_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_TELL_ACTION_H_

#include <string>

#include "base/macros.h"
#include "components/autofill_assistant/browser/actions/action.h"

Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_WAIT_FOR_NAVIGATION_ACTION_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ACTIONS_WAIT_FOR_NAVIGATION_ACTION_H_

#include <string>

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
Expand Down
3 changes: 0 additions & 3 deletions components/autofill_assistant/browser/info_box.h
Expand Up @@ -5,9 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_INFO_BOX_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_INFO_BOX_H_

#include <map>
#include <string>

#include "base/values.h"
#include "components/autofill_assistant/browser/service.pb.h"

Expand Down
2 changes: 0 additions & 2 deletions components/autofill_assistant/browser/onboarding_result.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ONBOARDING_RESULT_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_ONBOARDING_RESULT_H_

#include <string>

namespace autofill_assistant {

// GENERATED_JAVA_ENUM_PACKAGE: (
Expand Down
2 changes: 0 additions & 2 deletions components/autofill_assistant/browser/overlay_state.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_OVERLAY_STATE_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_OVERLAY_STATE_H_

#include <string>

#include "base/callback.h"

namespace autofill_assistant {
Expand Down
2 changes: 0 additions & 2 deletions components/autofill_assistant/browser/viewport_mode.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_VIEWPORT_MODE_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_VIEWPORT_MODE_H_

#include <string>

#include "base/callback.h"

namespace autofill_assistant {
Expand Down
2 changes: 0 additions & 2 deletions components/back_forward_cache/back_forward_cache_disable.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_BACK_FORWARD_CACHE_BACK_FORWARD_CACHE_DISABLE_H_
#define COMPONENTS_BACK_FORWARD_CACHE_BACK_FORWARD_CACHE_DISABLE_H_

#include <string>

#include "content/public/browser/back_forward_cache.h"
#include "content/public/browser/global_routing_id.h"

Expand Down
2 changes: 0 additions & 2 deletions components/blocked_content/popup_navigation_delegate.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_BLOCKED_CONTENT_POPUP_NAVIGATION_DELEGATE_H_
#define COMPONENTS_BLOCKED_CONTENT_POPUP_NAVIGATION_DELEGATE_H_

#include <memory>

#include "base/optional.h"
#include "third_party/blink/public/mojom/window_features/window_features.mojom-forward.h"
#include "ui/base/window_open_disposition.h"
Expand Down
4 changes: 0 additions & 4 deletions components/bookmarks/browser/bookmark_storage.h
Expand Up @@ -7,10 +7,6 @@

#include <stdint.h>

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

#include "base/callback_forward.h"
#include "base/files/file_path.h"
#include "base/files/important_file_writer.h"
Expand Down
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_BROWSING_DATA_CONTENT_CONDITIONAL_CACHE_COUNTING_HELPER_H_
#define COMPONENTS_BROWSING_DATA_CONTENT_CONDITIONAL_CACHE_COUNTING_HELPER_H_

#include <memory>

#include "base/callback_forward.h"
#include "base/sequenced_task_runner_helpers.h"
#include "net/base/net_errors.h"
Expand Down
2 changes: 0 additions & 2 deletions components/browsing_data/core/counters/bookmark_counter.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_BROWSING_DATA_CORE_COUNTERS_BOOKMARK_COUNTER_H_
#define COMPONENTS_BROWSING_DATA_CORE_COUNTERS_BOOKMARK_COUNTER_H_

#include <memory>

#include "components/browsing_data/core/counters/browsing_data_counter.h"

namespace bookmarks {
Expand Down
2 changes: 0 additions & 2 deletions components/browsing_data/core/history_notice_utils.h
Expand Up @@ -5,8 +5,6 @@
#ifndef COMPONENTS_BROWSING_DATA_CORE_HISTORY_NOTICE_UTILS_H_
#define COMPONENTS_BROWSING_DATA_CORE_HISTORY_NOTICE_UTILS_H_

#include <string>

#include "base/callback_forward.h"

namespace history {
Expand Down

0 comments on commit 0bf0ff5

Please sign in to comment.