Add missing base/check.h includes

Do not rely on base/logging.h to provide it.

Change-Id: I8b7d733bcf66abe9b46eabd3703b7ed549d02db7
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5007844
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
diff --git a/DEPS b/DEPS
index 909ef7d..aad7bbc 100644
--- a/DEPS
+++ b/DEPS
@@ -47,7 +47,7 @@
       '9719c1e1e676814c456b55f5f070eabad6709d31',
   'crashpad/third_party/mini_chromium/mini_chromium':
       Var('chromium_git') + '/chromium/mini_chromium@' +
-      '98bbdbe49f4ac26318f88aa7e84296a3da22f7d8',
+      'e508a6010e25ba2619317b45995a30f65d2af9b3',
   'crashpad/third_party/libfuzzer/src':
       Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git@' +
       'fda403cf93ecb8792cb1d061564d89a6553ca020',
diff --git a/client/pthread_create_linux.cc b/client/pthread_create_linux.cc
index acbf57d..86ff8db 100644
--- a/client/pthread_create_linux.cc
+++ b/client/pthread_create_linux.cc
@@ -15,6 +15,7 @@
 #include <dlfcn.h>
 #include <pthread.h>
 
+#include "base/check.h"
 #include "base/logging.h"
 #include "client/crashpad_client.h"
 #include "util/misc/no_cfi_icall.h"
diff --git a/handler/mac/exception_handler_server.cc b/handler/mac/exception_handler_server.cc
index 5357c8c..5c1814c 100644
--- a/handler/mac/exception_handler_server.cc
+++ b/handler/mac/exception_handler_server.cc
@@ -17,6 +17,7 @@
 #include <utility>
 
 #include "base/apple/mach_logging.h"
+#include "base/check.h"
 #include "base/logging.h"
 #include "util/mach/composite_mach_message_server.h"
 #include "util/mach/mach_extensions.h"
diff --git a/handler/win/crashy_test_program.cc b/handler/win/crashy_test_program.cc
index 658a225..0929f33 100644
--- a/handler/win/crashy_test_program.cc
+++ b/handler/win/crashy_test_program.cc
@@ -25,6 +25,7 @@
 #include <type_traits>
 #include <vector>
 
+#include "base/check.h"
 #include "base/files/file_path.h"
 #include "base/logging.h"
 #include "build/build_config.h"
diff --git a/handler/win/fastfail_test_program.cc b/handler/win/fastfail_test_program.cc
index 346aa68..f654119 100644
--- a/handler/win/fastfail_test_program.cc
+++ b/handler/win/fastfail_test_program.cc
@@ -14,6 +14,7 @@
 
 #include <string.h>
 
+#include "base/check.h"
 #include "base/files/file_path.h"
 #include "base/logging.h"
 #include "client/crashpad_client.h"
diff --git a/handler/win/hanging_program.cc b/handler/win/hanging_program.cc
index 2404bf3..72f903f 100644
--- a/handler/win/hanging_program.cc
+++ b/handler/win/hanging_program.cc
@@ -17,6 +17,7 @@
 
 #include <iterator>
 
+#include "base/check.h"
 #include "base/debug/alias.h"
 #include "base/logging.h"
 #include "base/notreached.h"
diff --git a/handler/win/heap_corrupting_program.cc b/handler/win/heap_corrupting_program.cc
index 6c7c2cd..8fe62f6 100644
--- a/handler/win/heap_corrupting_program.cc
+++ b/handler/win/heap_corrupting_program.cc
@@ -14,6 +14,7 @@
 
 #include <string.h>
 
+#include "base/check.h"
 #include "base/files/file_path.h"
 #include "base/logging.h"
 #include "client/crashpad_client.h"
diff --git a/test/test_paths.cc b/test/test_paths.cc
index 1e1c250..75399ac 100644
--- a/test/test_paths.cc
+++ b/test/test_paths.cc
@@ -17,6 +17,7 @@
 #include <stdlib.h>
 #include <sys/stat.h>
 
+#include "base/check.h"
 #include "base/logging.h"
 #include "build/build_config.h"
 #include "util/misc/paths.h"
diff --git a/test/win/win_child_process.cc b/test/win/win_child_process.cc
index d1a767c..d4d9a46 100644
--- a/test/win/win_child_process.cc
+++ b/test/win/win_child_process.cc
@@ -20,6 +20,7 @@
 #include <string>
 #include <utility>
 
+#include "base/check.h"
 #include "base/logging.h"
 #include "base/strings/stringprintf.h"
 #include "base/strings/utf_string_conversions.h"
diff --git a/util/file/directory_reader_posix.cc b/util/file/directory_reader_posix.cc
index d046eb1..352991d 100644
--- a/util/file/directory_reader_posix.cc
+++ b/util/file/directory_reader_posix.cc
@@ -19,6 +19,7 @@
 #include <string.h>
 #include <sys/types.h>
 
+#include "base/check.h"
 #include "base/logging.h"
 
 namespace crashpad {
diff --git a/util/file/directory_reader_win.cc b/util/file/directory_reader_win.cc
index e1bb38e..9525118 100644
--- a/util/file/directory_reader_win.cc
+++ b/util/file/directory_reader_win.cc
@@ -16,6 +16,7 @@
 
 #include <string.h>
 
+#include "base/check.h"
 #include "base/logging.h"
 
 namespace crashpad {
diff --git a/util/posix/process_info_linux.cc b/util/posix/process_info_linux.cc
index 2738761..1aca699 100644
--- a/util/posix/process_info_linux.cc
+++ b/util/posix/process_info_linux.cc
@@ -16,6 +16,7 @@
 
 #include <stdio.h>
 
+#include "base/check.h"
 #include "base/files/file_path.h"
 #include "base/logging.h"
 #include "util/file/delimited_file_reader.h"
diff --git a/util/stream/file_output_stream.cc b/util/stream/file_output_stream.cc
index 91aed90..a3633f9 100644
--- a/util/stream/file_output_stream.cc
+++ b/util/stream/file_output_stream.cc
@@ -14,6 +14,7 @@
 
 #include "util/stream/file_output_stream.h"
 
+#include "base/check.h"
 #include "base/logging.h"
 
 namespace crashpad {
diff --git a/util/win/exception_handler_server.cc b/util/win/exception_handler_server.cc
index ba938ec..e641c7f 100644
--- a/util/win/exception_handler_server.cc
+++ b/util/win/exception_handler_server.cc
@@ -21,6 +21,7 @@
 #include <iterator>
 #include <utility>
 
+#include "base/check.h"
 #include "base/logging.h"
 #include "base/numerics/safe_conversions.h"
 #include "base/rand_util.h"
diff --git a/util/win/registration_protocol_win.cc b/util/win/registration_protocol_win.cc
index d71c560..95111f9 100644
--- a/util/win/registration_protocol_win.cc
+++ b/util/win/registration_protocol_win.cc
@@ -21,6 +21,7 @@
 
 #include <iterator>
 
+#include "base/check.h"
 #include "base/logging.h"
 #include "util/win/exception_handler_server.h"
 #include "util/win/loader_lock.h"
diff --git a/util/win/session_end_watcher.cc b/util/win/session_end_watcher.cc
index d685a99..ead6b7f 100644
--- a/util/win/session_end_watcher.cc
+++ b/util/win/session_end_watcher.cc
@@ -14,6 +14,7 @@
 
 #include "util/win/session_end_watcher.h"
 
+#include "base/check.h"
 #include "base/logging.h"
 #include "base/scoped_generic.h"
 #include "util/win/scoped_set_event.h"