diff --git a/components/dbus/menu/BUILD.gn b/components/dbus/menu/BUILD.gn index 4615f3e882293b..89227406a5e9cf 100644 --- a/components/dbus/menu/BUILD.gn +++ b/components/dbus/menu/BUILD.gn @@ -38,7 +38,6 @@ source_set("unit_tests") { ":menu", "//base", "//build:chromecast_buildflags", - "//build:chromeos_buildflags", "//components/dbus/properties", "//testing/gtest", ] diff --git a/components/dbus/menu/menu_property_list_unittest.cc b/components/dbus/menu/menu_property_list_unittest.cc index a0f1036139261a..ce12b56eb3dc56 100644 --- a/components/dbus/menu/menu_property_list_unittest.cc +++ b/components/dbus/menu/menu_property_list_unittest.cc @@ -10,7 +10,6 @@ #include "base/strings/utf_string_conversions.h" #include "build/build_config.h" #include "build/chromecast_buildflags.h" -#include "build/chromeos_buildflags.h" #include "components/dbus/properties/types.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/base/accelerators/accelerator.h" diff --git a/components/dbus/thread_linux/BUILD.gn b/components/dbus/thread_linux/BUILD.gn index e14855a6a29f67..45ccbec0dd95bd 100644 --- a/components/dbus/thread_linux/BUILD.gn +++ b/components/dbus/thread_linux/BUILD.gn @@ -11,7 +11,6 @@ source_set("thread_linux") { defines = [ "IS_COMPONENTS_DBUS_IMPL" ] deps = [ "//base", - "//build:chromeos_buildflags", "//dbus", ] } diff --git a/components/dbus/thread_linux/dbus_thread_linux.h b/components/dbus/thread_linux/dbus_thread_linux.h index 277af2bf506049..b5f849bf206699 100644 --- a/components/dbus/thread_linux/dbus_thread_linux.h +++ b/components/dbus/thread_linux/dbus_thread_linux.h @@ -9,14 +9,13 @@ #include "base/memory/ref_counted.h" #include "base/task/single_thread_task_runner.h" #include "build/build_config.h" -#include "build/chromeos_buildflags.h" // Many APIs in ::dbus are required to be called from the same thread // (https://crbug.com/130984). Therefore, a SingleThreadedTaskRunner is // maintained and accessible through GetTaskRunner(), from which all calls // to dbus on Linux have to be made. -#if BUILDFLAG(IS_CHROMEOS_ASH) +#if BUILDFLAG(IS_CHROMEOS) #error On ChromeOS, use DBusThreadManager instead. #endif