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

logging.h related include-what-you-use (mojo/)

Fix code that was implicitly depending on logging.h or its
dependencies.

For example, code that uses DISALLOW_COPY_AND_ASSIGN should
include base/macros.h, but it currently happens to work if
it pulls in logging.h directly or through some dependency.

This is part of refactoring the codebase to use
check.h/check_op.h for the CHECK and CHECK_op macro
instead of logging.h.

Bug: 1031540
Change-Id: I723f79de3ff4f75df75d899922980576db23551e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2157105Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Ken Rockot <rockot@google.com>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#761104}
parent eaf12fa2
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include "base/logging.h"
#include "base/numerics/safe_math.h" #include "base/numerics/safe_math.h"
#include "mojo/core/ports/user_message.h" #include "mojo/core/ports/user_message.h"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
// NOTE: This needs to be included *after* windows.h. // NOTE: This needs to be included *after* windows.h.
#include <sddl.h> #include <sddl.h>
#include "base/logging.h"
#include "base/rand_util.h" #include "base/rand_util.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#include <stddef.h> #include <stddef.h>
#include <sys/types.h> #include <sys/types.h>
#include <vector>
#include "base/component_export.h" #include "base/component_export.h"
#include "base/files/platform_file.h" #include "base/files/platform_file.h"
#include "base/files/scoped_file.h" #include "base/files/scoped_file.h"
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include "mojo/public/cpp/system/data_pipe.h" #include "mojo/public/cpp/system/data_pipe.h"
#include "base/logging.h"
namespace mojo { namespace mojo {
namespace { namespace {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "mojo/public/cpp/system/platform_handle.h" #include "mojo/public/cpp/system/platform_handle.h"
#include "base/logging.h"
#include "base/memory/platform_shared_memory_region.h" #include "base/memory/platform_shared_memory_region.h"
#include "base/numerics/safe_conversions.h" #include "base/numerics/safe_conversions.h"
#include "build/build_config.h" #include "build/build_config.h"
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#include <algorithm> #include <algorithm>
#include "base/logging.h"
namespace mojo { namespace mojo {
StringDataSource::StringDataSource(base::StringPiece data, StringDataSource::StringDataSource(base::StringPiece data,
......
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