Skip to content

Commit

Permalink
Fix GN missing headers in //base
Browse files Browse the repository at this point in the history
BUG=661774

Review-Url: https://codereview.chromium.org/2533123002
Cr-Commit-Position: refs/heads/master@{#442626}
  • Loading branch information
wychen authored and Commit bot committed Jan 10, 2017
1 parent 4106ae0 commit 7b07e7b
Show file tree
Hide file tree
Showing 28 changed files with 140 additions and 31 deletions.
5 changes: 4 additions & 1 deletion ash/wm/panels/panel_window_resizer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state_aura.h"
#include "base/i18n/rtl.h"
#include "base/win/windows_version.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/core/window_util.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

namespace ash {

class PanelWindowResizerTest : public test::AshTestBase {
Expand Down
21 changes: 20 additions & 1 deletion base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ component("base") {
"allocator/allocator_check.h",
"allocator/allocator_extension.cc",
"allocator/allocator_extension.h",
"allocator/allocator_shim.h",
"allocator/oom.h",
"android/animation_frame_time_histogram.cc",
"android/animation_frame_time_histogram.h",
"android/apk_assets.cc",
Expand All @@ -170,6 +172,7 @@ component("base") {
"android/context_utils.cc",
"android/context_utils.h",
"android/cpu_features.cc",
"android/cpu_features.h",
"android/cxa_demangle_stub.cc",
"android/early_trace_event_binding.cc",
"android/early_trace_event_binding.h",
Expand All @@ -188,6 +191,8 @@ component("base") {
"android/jni_android.h",
"android/jni_array.cc",
"android/jni_array.h",
"android/jni_generator/jni_generator_helper.h",
"android/jni_int_wrapper.h",
"android/jni_registrar.cc",
"android/jni_registrar.h",
"android/jni_string.cc",
Expand Down Expand Up @@ -230,6 +235,7 @@ component("base") {
"atomic_ref_count.h",
"atomic_sequence_num.h",
"atomicops.h",
"atomicops_internals_atomicword_compat.h",
"atomicops_internals_portable.h",
"atomicops_internals_x86_msvc.h",
"auto_reset.h",
Expand Down Expand Up @@ -257,6 +263,7 @@ component("base") {
"callback_helpers.h",
"callback_internal.cc",
"callback_internal.h",
"callback_list.h",
"cancelable_callback.h",
"command_line.cc",
"command_line.h",
Expand Down Expand Up @@ -313,6 +320,7 @@ component("base") {
"deferred_sequenced_task_runner.h",
"environment.cc",
"environment.h",
"event_types.h",
"feature_list.cc",
"feature_list.h",
"file_descriptor_posix.h",
Expand Down Expand Up @@ -544,6 +552,7 @@ component("base") {
"message_loop/message_pump_mac.mm",
"message_loop/message_pump_win.cc",
"message_loop/message_pump_win.h",
"message_loop/timer_slack.h",
"metrics/bucket_ranges.cc",
"metrics/bucket_ranges.h",
"metrics/field_trial.cc",
Expand All @@ -560,6 +569,8 @@ component("base") {
"metrics/histogram_functions.cc",
"metrics/histogram_functions.h",
"metrics/histogram_macros.h",
"metrics/histogram_macros_internal.h",
"metrics/histogram_macros_local.h",
"metrics/histogram_samples.cc",
"metrics/histogram_samples.h",
"metrics/histogram_snapshot_manager.cc",
Expand Down Expand Up @@ -614,6 +625,7 @@ component("base") {
"pickle.h",
"posix/eintr_wrapper.h",
"posix/file_descriptor_shuffle.cc",
"posix/file_descriptor_shuffle.h",
"posix/global_descriptors.cc",
"posix/global_descriptors.h",
"posix/safe_strerror.cc",
Expand Down Expand Up @@ -706,6 +718,7 @@ component("base") {
"rand_util_win.cc",
"run_loop.cc",
"run_loop.h",
"scoped_clear_errno.h",
"scoped_generic.h",
"scoped_native_library.cc",
"scoped_native_library.h",
Expand Down Expand Up @@ -789,6 +802,7 @@ component("base") {
"sys_info.h",
"sys_info_android.cc",
"sys_info_chromeos.cc",
"sys_info_internal.h",
"syslog_logging.cc",
"syslog_logging.h",

Expand Down Expand Up @@ -846,6 +860,7 @@ component("base") {
"task_scheduler/task_traits.cc",
"task_scheduler/task_traits.h",
"template_util.h",
"test/malloc_wrapper.h",
"third_party/dmg_fp/dmg_fp.h",
"third_party/dmg_fp/dtoa_wrapper.cc",
"third_party/dmg_fp/g_fmt.cc",
Expand All @@ -854,6 +869,7 @@ component("base") {
"third_party/nspr/prtime.cc",
"third_party/nspr/prtime.h",
"third_party/superfasthash/superfasthash.c",
"third_party/valgrind/memcheck.h",
"threading/non_thread_safe.h",
"threading/non_thread_safe_impl.cc",
"threading/non_thread_safe_impl.h",
Expand Down Expand Up @@ -1366,7 +1382,10 @@ component("base") {

# Desktop Mac.
if (is_mac) {
sources += [ "power_monitor/power_monitor_device_source_mac.mm" ]
sources += [
"mac/scoped_typeref.h",
"power_monitor/power_monitor_device_source_mac.mm",
]

libs = [
"ApplicationServices.framework",
Expand Down
5 changes: 4 additions & 1 deletion base/debug/stack_trace_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
#include <AvailabilityMacros.h>
#endif

#include "base/debug/debugger.h"
#if defined(OS_LINUX)
#include "base/debug/proc_maps_linux.h"
#endif

#include "base/debug/debugger.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/free_deleter.h"
Expand Down
31 changes: 28 additions & 3 deletions base/third_party/libevent/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,53 @@ static_library("libevent") {
"buffer.c",
"evbuffer.c",
"evdns.c",
"evdns.h",
"event-config.h",
"event-internal.h",
"event.c",
"event.h",
"event_tagging.c",
"evhttp.h",
"evrpc-internal.h",
"evrpc.c",
"evrpc.h",
"evsignal.h",
"evutil.c",
"evutil.h",
"http-internal.h",
"http.c",
"log.c",
"log.h",
"min_heap.h",
"poll.c",
"select.c",
"signal.c",
"strlcpy-internal.h",
"strlcpy.c",
]

defines = [ "HAVE_CONFIG_H" ]

if (is_mac || is_ios) {
sources += [ "kqueue.c" ]
sources += [
"kqueue.c",
"mac/config.h",
"mac/event-config.h",
]
include_dirs = [ "mac" ]
} else if (is_linux) {
sources += [ "epoll.c" ]
sources += [
"epoll.c",
"linux/config.h",
"linux/event-config.h",
]
include_dirs = [ "linux" ]
} else if (is_android) {
sources += [ "epoll.c" ]
sources += [
"android/config.h",
"android/event-config.h",
"epoll.c",
]
include_dirs = [ "android" ]
} else if (is_nacl_nonsfi) {
sources -= [
Expand Down
5 changes: 4 additions & 1 deletion chrome/browser/apps/app_url_redirector_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/browser/apps/app_browsertest_util.h"
#include "chrome/browser/chrome_notification_types.h"
Expand All @@ -19,6 +18,10 @@
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/base/page_transition_types.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

namespace extensions {

class PlatformAppUrlRedirectorBrowserTest : public PlatformAppBrowserTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "base/strings/string_util.h"
#include "base/values.h"
#include "base/version.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/chrome_paths.h"
Expand All @@ -33,6 +32,10 @@
#include "components/update_client/utils.h"
#include "content/public/browser/browser_thread.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

using content::BrowserThread;
using update_client::CrxComponent;
using update_client::UpdateQueryParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "base/strings/stringprintf.h"
#include "base/test/trace_event_analyzer.h"
#include "base/time/default_tick_clock.h"
#include "base/win/windows_version.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/tab_helper.h"
Expand Down Expand Up @@ -54,6 +53,10 @@
#include "ui/compositor/compositor_switches.h"
#include "ui/gl/gl_switches.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

namespace {

const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "base/command_line.h"
#include "base/strings/stringprintf.h"
#include "base/test/trace_event_analyzer.h"
#include "base/win/windows_version.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/tab_helper.h"
Expand All @@ -28,6 +27,10 @@
#include "ui/compositor/compositor_switches.h"
#include "ui/gl/gl_switches.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

namespace {

const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h"
Expand All @@ -40,6 +39,10 @@
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

using base::JSONWriter;
using content::RenderProcessHost;
using content::WebContents;
Expand Down
5 changes: 4 additions & 1 deletion chrome/browser/extensions/extension_loading_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/version.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/devtools_util.h"
#include "chrome/browser/extensions/extension_browsertest.h"
Expand All @@ -26,6 +25,10 @@
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

namespace extensions {
namespace {

Expand Down
5 changes: 4 additions & 1 deletion chrome/browser/media/encrypted_media_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/browser/media/media_browsertest.h"
#include "chrome/browser/media/test_license_server.h"
Expand All @@ -27,6 +26,10 @@
#include "base/android/build_info.h"
#endif

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

#if BUILDFLAG(ENABLE_PEPPER_CDMS)
#include "chrome/browser/media/pepper_cdm_test_constants.h"
#include "chrome/browser/media/pepper_cdm_test_helper.h"
Expand Down
5 changes: 4 additions & 1 deletion chrome/browser/nacl_host/test/nacl_gdb_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
#include "base/environment.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/ppapi/ppapi_test.h"
#include "components/nacl/common/nacl_switches.h"

#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif

static const base::FilePath::CharType kMockNaClGdb[] =
#if defined(OS_WIN)
FILE_PATH_LITERAL("mock_nacl_gdb.exe");
Expand Down
3 changes: 1 addition & 2 deletions chrome/browser/password_manager/password_store_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "chrome/common/chrome_switches.h"
#include "components/browser_sync/profile_sync_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/os_crypt/key_storage_util_linux.h"
#include "components/os_crypt/os_crypt_switches.h"
#include "components/password_manager/core/browser/login_database.h"
#include "components/password_manager/core/browser/password_store.h"
Expand All @@ -43,7 +42,7 @@
#elif defined(OS_CHROMEOS) || defined(OS_ANDROID)
// Don't do anything. We're going to use the default store.
#elif defined(USE_X11)
#include "base/nix/xdg_util.h"
#include "components/os_crypt/key_storage_util_linux.h"
#if defined(USE_GNOME_KEYRING)
#include "chrome/browser/password_manager/native_backend_gnome_x.h"
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/profiles/profile.h"
Expand Down Expand Up @@ -56,6 +55,7 @@

#if defined(OS_WIN)
#include "base/win/shortcut.h"
#include "base/win/windows_version.h"
#endif // defined(OS_WIN)

namespace {
Expand Down
Loading

0 comments on commit 7b07e7b

Please sign in to comment.