0

Fix various missing includes that rely on base/strings/string_piece.h

Some headers are transitively depending on base/strings/string_piece.h
to include check.h and other //base headers. Since string_piece.h is
going away, stop depending on it and directly include the necessary
headers.

Bug: 691162
Change-Id: I97f27acf75331326aab15245cc1a705b5a18013d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5007543
Commit-Queue: Lei Zhang <thestig@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1220676}
This commit is contained in:
Lei Zhang
2023-11-07 02:00:36 +00:00
committed by Chromium LUCI CQ
parent 360ba06525
commit 44e91713e4
16 changed files with 18 additions and 0 deletions
ash/public/cpp/test
base
chrome/browser/segmentation_platform
components
omnibox
reporting
services
storage
fuchsia_web/cast_streaming
headless/public/util
ios/chrome/browser
shared
coordinator
ui
autofill
remoting/host/win
rlz/lib
third_party/opus/tests
ui/base/resource

@ -4,6 +4,8 @@
#include "ash/public/cpp/test/mock_projector_client.h"
#include "base/check.h"
namespace ash {
MockProjectorClient::MockProjectorClient() {

@ -4,6 +4,7 @@
#include "base/native_library.h"
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/test/native_library_test_utils.h"

@ -13,6 +13,7 @@
#include "base/base_export.h"
#include "base/strings/string_piece.h"
#include "base/strings/utf_offset_string_conversions.h"
#include "build/build_config.h"
namespace base {

@ -6,6 +6,7 @@
#include <windows.h>
#include "base/check.h"
#include "base/native_library.h"
#include "base/win/windows_version.h"

@ -7,6 +7,7 @@
#include <memory>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"

@ -6,6 +6,7 @@
#include <string>
#include "base/check.h"
#include "base/i18n/break_iterator.h"
#include "base/strings/string_piece.h"

@ -9,6 +9,7 @@
#include <iosfwd>
#include <string>
#include "base/check.h"
#include "base/strings/string_piece.h"
#include "components/reporting/proto/synced/status.pb.h"

@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "components/services/storage/indexed_db/scopes/varint_coding.h"
#include "base/dcheck_is_on.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {

@ -6,6 +6,7 @@
#include <string>
#include "base/check.h"
#include "base/fuchsia/file_utils.h"
#include "base/path_service.h"

@ -8,6 +8,7 @@
#include <string>
#include <vector>
#include "base/dcheck_is_on.h"
#include "base/strings/string_piece.h"
#include "headless/public/headless_export.h"

@ -6,6 +6,7 @@
#import <UIKit/UIKit.h>
#import "base/check.h"
#import "base/ios/ios_util.h"
namespace {

@ -4,6 +4,7 @@
#import "ios/chrome/browser/ui/autofill/manual_fill/fallback_view_controller.h"
#import "base/check.h"
#import "base/ios/ios_util.h"
#import "ios/chrome/browser/shared/ui/table_view/legacy_chrome_table_view_styler.h"
#import "ios/chrome/browser/shared/ui/util/uikit_ui_util.h"

@ -7,6 +7,7 @@
#include <string>
#include <vector>
#include "base/check.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "remoting/host/win/remoting_host_messages.h"

@ -13,6 +13,7 @@
#include <tuple>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"

@ -8,6 +8,7 @@
#include <ctime>
#include <limits>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "testing/gtest/include/gtest/gtest.h"

@ -10,6 +10,7 @@
#include <vector>
#include "base/component_export.h"
#include "base/dcheck_is_on.h"
#include "base/strings/string_piece.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/base/resource/resource_scale_factor.h"