0

Remove IS_CHROMEOS_ASH from //components/*

This cleans up the following subdirectories: sessions,
soda, storage_monitor, supervised_user, sync_preferences,
system_media_controls, translate, trusted_vault,
unified_consent, update_client, user_manager,
vector_icons, version_ui, web_resource

1) Removed IS_CHROMEOS_LACROS usages and code it guarded
2) Renamed IS_CHROMEOS_ASH to IS_CHROMEOS
3) Removed chromeos_buildflags.h includes
4) Cleaned up *.gn files from IS_CHROMEOS_*.

Bug: 375523816, 373972275, 373971535
Change-Id: I973920d2078526bede68a84dbea53029d202c22d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6097194
Reviewed-by: Georg Neis <neis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1397771}
This commit is contained in:
Maksim Sisov
2024-12-18 00:34:42 -08:00
committed by Chromium LUCI CQ
parent cf38e29997
commit 764f01d25d
58 changed files with 124 additions and 556 deletions
components
sessions
soda
storage_monitor
supervised_user
sync_preferences
system_media_controls
linux
buildflags
translate
trusted_vault
unified_consent
update_client
user_manager
vector_icons
version_ui
web_resource

@ -136,7 +136,6 @@ source_set("shared") {
public_deps = [
":session_id",
"//build:chromeos_buildflags",
"//components/keyed_service/core",
"//skia",
]

@ -14,7 +14,6 @@
#include "base/time/time.h"
#include "base/token.h"
#include "build/chromeos_buildflags.h"
#include "components/sessions/core/serialized_navigation_entry.h"
#include "components/sessions/core/serialized_user_agent_override.h"
#include "components/sessions/core/session_id.h"
@ -156,7 +155,7 @@ struct SESSIONS_EXPORT SessionWindow {
TYPE_APP = 2,
TYPE_DEVTOOLS = 3,
TYPE_APP_POPUP = 4,
#if BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS)
TYPE_CUSTOM_TAB = 5,
#endif
};

@ -253,7 +253,7 @@ bool DeserializeWindowType(int type_int,
case sessions::SessionWindow::TYPE_APP:
case sessions::SessionWindow::TYPE_DEVTOOLS:
case sessions::SessionWindow::TYPE_APP_POPUP:
#if BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS)
case sessions::SessionWindow::TYPE_CUSTOM_TAB:
#endif
*type = static_cast<sessions::SessionWindow::WindowType>(type_int);