Commit e502c542 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

cros: Remove Supervised feature flags that been enabled for a long time

Bug: 866790
Change-Id: I8f9f3c567717f36e91f8a8f12b42124f4114ed03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340913
Auto-Submit: Roman Sorokin [CET] <rsorokin@chromium.org>
Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795547}
parent ab221bbb
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "ash/login/ui/system_label_button.h" #include "ash/login/ui/system_label_button.h"
#include "ash/login/ui/views_utils.h" #include "ash/login/ui/views_utils.h"
#include "ash/media/media_controller_impl.h" #include "ash/media/media_controller_impl.h"
#include "ash/public/cpp/ash_features.h"
#include "ash/public/cpp/ash_switches.h" #include "ash/public/cpp/ash_switches.h"
#include "ash/public/cpp/login_accelerators.h" #include "ash/public/cpp/login_accelerators.h"
#include "ash/public/cpp/login_types.h" #include "ash/public/cpp/login_types.h"
...@@ -1881,8 +1880,7 @@ void LockContentsView::OnBigUserChanged() { ...@@ -1881,8 +1880,7 @@ void LockContentsView::OnBigUserChanged() {
UpdateEasyUnlockIconForUser(big_user_account_id); UpdateEasyUnlockIconForUser(big_user_account_id);
// http://crbug/866790: After Supervised Users are deprecated, remove this. // http://crbug/866790: After Supervised Users are deprecated, remove this.
if (features::IsSupervisedUserDeprecationNoticeEnabled() && if (big_user.basic_user_info.type == user_manager::USER_TYPE_SUPERVISED) {
big_user.basic_user_info.type == user_manager::USER_TYPE_SUPERVISED) {
base::string16 message = l10n_util::GetStringUTF16( base::string16 message = l10n_util::GetStringUTF16(
IDS_ASH_LOGIN_POD_LEGACY_SUPERVISED_EXPIRATION_WARNING); IDS_ASH_LOGIN_POD_LEGACY_SUPERVISED_EXPIRATION_WARNING);
// Shows supervised user deprecation message as a persistent error bubble. // Shows supervised user deprecation message as a persistent error bubble.
......
...@@ -100,9 +100,6 @@ const base::Feature kTrilinearFiltering{"TrilinearFiltering", ...@@ -100,9 +100,6 @@ const base::Feature kTrilinearFiltering{"TrilinearFiltering",
const base::Feature kUseBluetoothSystemInAsh{"UseBluetoothSystemInAsh", const base::Feature kUseBluetoothSystemInAsh{"UseBluetoothSystemInAsh",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kSupervisedUserDeprecationNotice{
"SupervisedUserDeprecationNotice", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kSwapSideVolumeButtonsForOrientation{ const base::Feature kSwapSideVolumeButtonsForOrientation{
"SwapSideVolumeButtonsForOrientation", base::FEATURE_ENABLED_BY_DEFAULT}; "SwapSideVolumeButtonsForOrientation", base::FEATURE_ENABLED_BY_DEFAULT};
...@@ -199,10 +196,6 @@ bool IsTrilinearFilteringEnabled() { ...@@ -199,10 +196,6 @@ bool IsTrilinearFilteringEnabled() {
return use_trilinear_filtering; return use_trilinear_filtering;
} }
bool IsSupervisedUserDeprecationNoticeEnabled() {
return base::FeatureList::IsEnabled(kSupervisedUserDeprecationNotice);
}
bool IsSwapSideVolumeButtonsForOrientationEnabled() { bool IsSwapSideVolumeButtonsForOrientationEnabled() {
return base::FeatureList::IsEnabled(kSwapSideVolumeButtonsForOrientation); return base::FeatureList::IsEnabled(kSwapSideVolumeButtonsForOrientation);
} }
......
...@@ -122,9 +122,6 @@ ASH_PUBLIC_EXPORT extern const base::Feature kTrilinearFiltering; ...@@ -122,9 +122,6 @@ ASH_PUBLIC_EXPORT extern const base::Feature kTrilinearFiltering;
// Enables using the BluetoothSystem Mojo interface for Bluetooth operations. // Enables using the BluetoothSystem Mojo interface for Bluetooth operations.
ASH_PUBLIC_EXPORT extern const base::Feature kUseBluetoothSystemInAsh; ASH_PUBLIC_EXPORT extern const base::Feature kUseBluetoothSystemInAsh;
// Enables the Supervised User Deprecation notices.
ASH_PUBLIC_EXPORT extern const base::Feature kSupervisedUserDeprecationNotice;
// Enables side volume button control based on screen orientation feature. // Enables side volume button control based on screen orientation feature.
// TODO(https://crbug.com/937907): Remove this after the feature is fully // TODO(https://crbug.com/937907): Remove this after the feature is fully
// launched. // launched.
...@@ -200,8 +197,6 @@ ASH_PUBLIC_EXPORT bool IsSeparateNetworkIconsEnabled(); ...@@ -200,8 +197,6 @@ ASH_PUBLIC_EXPORT bool IsSeparateNetworkIconsEnabled();
ASH_PUBLIC_EXPORT bool IsTrilinearFilteringEnabled(); ASH_PUBLIC_EXPORT bool IsTrilinearFilteringEnabled();
ASH_PUBLIC_EXPORT bool IsSupervisedUserDeprecationNoticeEnabled();
ASH_PUBLIC_EXPORT bool IsSwapSideVolumeButtonsForOrientationEnabled(); ASH_PUBLIC_EXPORT bool IsSwapSideVolumeButtonsForOrientationEnabled();
ASH_PUBLIC_EXPORT bool IsBackgroundBlurEnabled(); ASH_PUBLIC_EXPORT bool IsBackgroundBlurEnabled();
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "ash/public/cpp/ash_features.h"
#include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/notification_utils.h"
#include "ash/public/cpp/vector_icons/vector_icons.h" #include "ash/public/cpp/vector_icons/vector_icons.h"
#include "base/base_paths.h" #include "base/base_paths.h"
...@@ -1436,15 +1435,13 @@ void UserSessionManager::UserProfileInitialized(Profile* profile, ...@@ -1436,15 +1435,13 @@ void UserSessionManager::UserProfileInitialized(Profile* profile,
os_sync_util::MigrateOsSyncPreferences(profile->GetPrefs()); os_sync_util::MigrateOsSyncPreferences(profile->GetPrefs());
// http://crbug/866790: After Supervised Users are deprecated, remove this. // http://crbug/866790: After Supervised Users are deprecated, remove this.
if (ash::features::IsSupervisedUserDeprecationNoticeEnabled()) { bool is_supervised_user =
bool is_supervised_user = user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser();
user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser(); bool is_manager =
bool is_manager = ChromeUserManager::Get() ChromeUserManager::Get()->GetSupervisedUserManager()->HasSupervisedUsers(
->GetSupervisedUserManager() account_id.GetUserEmail());
->HasSupervisedUsers(account_id.GetUserEmail()); if (is_manager || is_supervised_user)
if (is_manager || is_supervised_user) ShowSupervisedUserDeprecationNotification(profile, is_manager);
ShowSupervisedUserDeprecationNotification(profile, is_manager);
}
// Demo user signed in. // Demo user signed in.
if (is_incognito_profile) { if (is_incognito_profile) {
...@@ -1754,9 +1751,7 @@ bool UserSessionManager::InitializeUserSession(Profile* profile) { ...@@ -1754,9 +1751,7 @@ bool UserSessionManager::InitializeUserSession(Profile* profile) {
ActivateWizard(TermsOfServiceScreenView::kScreenId); ActivateWizard(TermsOfServiceScreenView::kScreenId);
return false; return false;
} else if (base::FeatureList::IsEnabled( } else if (!user_manager->IsCurrentUserNew() &&
chromeos::features::kEnableSupervisionTransitionScreens) &&
!user_manager->IsCurrentUserNew() &&
arc::GetSupervisionTransition(profile) != arc::GetSupervisionTransition(profile) !=
arc::ArcSupervisionTransition::NO_TRANSITION) { arc::ArcSupervisionTransition::NO_TRANSITION) {
ActivateWizard(SupervisionTransitionScreenView::kScreenId); ActivateWizard(SupervisionTransitionScreenView::kScreenId);
......
...@@ -222,11 +222,6 @@ const base::Feature kClipboardHistory{"ClipboardHistory", ...@@ -222,11 +222,6 @@ const base::Feature kClipboardHistory{"ClipboardHistory",
const base::Feature kEnableImeSandbox{"EnableImeSandbox", const base::Feature kEnableImeSandbox{"EnableImeSandbox",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
// If enabled, will display blocking screens during re-authentication after a
// supervision transition occurred.
const base::Feature kEnableSupervisionTransitionScreens{
"EnableSupervisionTransitionScreens", base::FEATURE_ENABLED_BY_DEFAULT};
// Enable restriction of symlink traversal on user-supplied filesystems. // Enable restriction of symlink traversal on user-supplied filesystems.
const base::Feature kFsNosymfollow{"FsNosymfollow", const base::Feature kFsNosymfollow{"FsNosymfollow",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
......
...@@ -100,8 +100,6 @@ COMPONENT_EXPORT(CHROMEOS_CONSTANTS) ...@@ -100,8 +100,6 @@ COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kClipboardHistory; extern const base::Feature kClipboardHistory;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kEnableImeSandbox; extern const base::Feature kEnableImeSandbox;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kEnableSupervisionTransitionScreens;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) extern const base::Feature kFsNosymfollow; COMPONENT_EXPORT(CHROMEOS_CONSTANTS) extern const base::Feature kFsNosymfollow;
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const base::Feature kGaiaActionButtons; extern const base::Feature kGaiaActionButtons;
......
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