0

Remove unneeded base/files/file.h includes from headers.

Delete or replace with the appropriate base/ headers. Fix a few lint
errors and do IWYU along the way.

Change-Id: If2066861079a6b7c82d5431b03f2da1db0b7159b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775447
Reviewed-by: Chris Palmer <palmer@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691961}
This commit is contained in:
Lei Zhang
2019-08-30 07:18:55 +00:00
committed by Commit Bot
parent c40b5ce8cb
commit 9a1bc18f33
13 changed files with 14 additions and 19 deletions
base
chrome/browser/ui/webui/chromeos/smb_shares
content/child
ipc
mojo/public/cpp/system
sandbox/linux
services/network
third_party/blink/public/platform

@ -67,7 +67,6 @@
#include "base/base_export.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/files/file.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/read_only_shared_memory_region.h"

@ -18,10 +18,6 @@
#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
#if defined(OS_POSIX)
#include "base/files/file.h"
#endif
namespace base {
class Pickle;

@ -6,7 +6,6 @@
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SMB_SHARES_SMB_HANDLER_H_
#include "base/callback_forward.h"
#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/smb_client/smb_service.h"

@ -9,7 +9,6 @@
#include <stdint.h>
#include "base/compiler_specific.h"
#include "base/files/file.h"
#include "base/single_thread_task_runner.h"
#include "base/timer/timer.h"
#include "base/trace_event/trace_event.h"

@ -5,7 +5,6 @@
#ifndef IPC_IPC_MESSAGE_ATTACHMENT_H_
#define IPC_IPC_MESSAGE_ATTACHMENT_H_
#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/pickle.h"

@ -5,7 +5,6 @@
#ifndef IPC_IPC_MOJO_HANDLE_ATTACHMENT_H_
#define IPC_IPC_MOJO_HANDLE_ATTACHMENT_H_
#include "base/files/file.h"
#include "base/macros.h"
#include "build/build_config.h"
#include "ipc/ipc_message_attachment.h"

@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IPC_IPC_PLATFORM_FILE_ATTACHMENT_H_
#define IPC_IPC_PLATFORM_FILE_ATTACHMENT_H_
#ifndef IPC_IPC_PLATFORM_FILE_ATTACHMENT_POSIX_H_
#define IPC_IPC_PLATFORM_FILE_ATTACHMENT_POSIX_H_
#include "base/files/platform_file.h"
#include "base/files/scoped_file.h"
#include "ipc/ipc_message_attachment.h"
#include "ipc/ipc_message_support_export.h"
@ -41,4 +43,4 @@ base::PlatformFile GetPlatformFile(scoped_refptr<MessageAttachment> attachment);
} // namespace internal
} // namespace IPC
#endif // IPC_IPC_PLATFORM_FILE_ATTACHMENT_H_
#endif // IPC_IPC_PLATFORM_FILE_ATTACHMENT_POSIX_H_

@ -14,7 +14,7 @@
#include <stdint.h>
#include "base/compiler_specific.h"
#include "base/files/file.h"
#include "base/files/platform_file.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/read_only_shared_memory_region.h"

@ -9,6 +9,7 @@
#include <stddef.h>
#include <stdint.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <utility>

@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_
#define SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_
#ifndef SANDBOX_LINUX_SYSCALL_BROKER_BROKER_PROCESS_H_
#define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_PROCESS_H_
#include <sys/stat.h>
#include <memory>
#include <string>
@ -139,4 +141,4 @@ class SANDBOX_EXPORT BrokerProcess {
} // namespace sandbox
#endif // SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_
#endif // SANDBOX_LINUX_SYSCALL_BROKER_BROKER_PROCESS_H_

@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdio.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
@ -358,4 +359,4 @@ void UnitTests::IgnoreThisTest() {
_exit(kIgnoreThisTest);
}
} // namespace
} // namespace sandbox

@ -19,7 +19,6 @@
#include "base/component_export.h"
#include "base/containers/flat_map.h"
#include "base/containers/unique_ptr_adapters.h"
#include "base/files/file.h"
#include "base/macros.h"
#include "base/optional.h"
#include "base/time/time.h"

@ -34,7 +34,6 @@
#include <memory>
#include "base/containers/span.h"
#include "base/files/file.h"
#include "base/memory/scoped_refptr.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/string_piece.h"