Commit 7aba7946 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Include-what-you-use related to logging.h (sandbox)

Add direct includes for things provided transitively by logging.h
(or by other headers including logging.h).

This is in preparation for cleaning up unnecessary includes of
logging.h in header files (so if something depends on logging.h,
it needs include it explicitly), and for when logging.h no longer
includes check.h, check_op.h, and notreached.h.

Bug: 1031540
Change-Id: I58c1887f9e2e3f491682d212412d225998591a3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249676
Commit-Queue: Hans Wennborg <hans@chromium.org>
Commit-Queue: Chris Palmer <palmer@chromium.org>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Reviewed-by: default avatarChris Palmer <palmer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779367}
parent 0c12a163
......@@ -10,6 +10,7 @@
#include <sys/syscall.h>
#include <limits>
#include <ostream>
#include "base/check_op.h"
#include "base/stl_util.h"
......
......@@ -14,6 +14,7 @@
#include "base/check_op.h"
#include "base/compiler_specific.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/notreached.h"
#include "base/posix/eintr_wrapper.h"
......
......@@ -9,6 +9,7 @@
#include <process.h>
#include <stdint.h>
#include "base/logging.h"
#include "base/win/windows_version.h"
#include "sandbox/win/src/crosscall_client.h"
#include "sandbox/win/src/handle_closer_agent.h"
......
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <windows.h>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/scoped_native_library.h"
......@@ -116,8 +117,8 @@ bool FindBinary(BYTE* binary_to_find,
BYTE* address_start,
DWORD max_distance,
intptr_t* out_offset) {
assert(size_to_match <= max_distance);
assert(size_to_match > 0);
DCHECK(size_to_match <= max_distance);
DCHECK(size_to_match > 0);
BYTE* max_byte = address_start + max_distance - size_to_match;
BYTE* temp_ptr = address_start;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment