Skip to content

Commit

Permalink
pciguard: Remove deprecated flag, DisablePeripheralDataAccessProtection
Browse files Browse the repository at this point in the history
- This flag is no longer used as we have transitioned to use a
  CrosSetting, kDevicePeripheralDataAccessEnabled.

Bug: 1175987
Change-Id: I66540c9a812e45497566562ade6c09dd4c09ac4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2724974
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Jimmy Gong <jimmyxgong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#859135}
  • Loading branch information
Jimmy Gong authored and Chromium LUCI CQ committed Mar 2, 2021
1 parent f8c5bd9 commit f1ad8d1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 33 deletions.
7 changes: 0 additions & 7 deletions ash/constants/ash_features.cc
Expand Up @@ -315,9 +315,6 @@ const base::Feature kExoPointerLock{"ExoPointerLock",
const base::Feature kExoLockNotification{"ExoLockNotification",
base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kDisablePeripheralDataAccessProtection{
"DisablePeripheralDataAccessProtection", base::FEATURE_DISABLED_BY_DEFAULT};

// Enables policy that controls feature to allow Family Link accounts on school
// owned devices.
const base::Feature kFamilyLinkOnSchoolDevice{"FamilyLinkOnSchoolDevice",
Expand Down Expand Up @@ -768,10 +765,6 @@ bool IsEcheSWAEnabled() {
return base::FeatureList::IsEnabled(kEcheSWA);
}

bool IsPeripheralDataAccessProtectionEnabled() {
return !base::FeatureList::IsEnabled(kDisablePeripheralDataAccessProtection);
}

bool IsHostnameSettingEnabled() {
return base::FeatureList::IsEnabled(kEnableHostnameSetting);
}
Expand Down
3 changes: 0 additions & 3 deletions ash/constants/ash_features.h
Expand Up @@ -125,8 +125,6 @@ COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kCryptAuthV2Enrollment;
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kDisableOfficeEditingComponentApp;
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kDisablePeripheralDataAccessProtection;
COMPONENT_EXPORT(ASH_CONSTANTS) extern const base::Feature kDriveFs;
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kDriveFsBidirectionalNativeMessaging;
Expand Down Expand Up @@ -362,7 +360,6 @@ COMPONENT_EXPORT(ASH_CONSTANTS) bool IsNewOobeLayoutEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsOobeChromeVoxHintEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsOobeScreensPriorityEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsPciguardUiEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsPeripheralDataAccessProtectionEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsPhoneHubEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsPhoneHubUseBleEnabled();
COMPONENT_EXPORT(ASH_CONSTANTS) bool IsPinAutosubmitBackfillFeatureEnabled();
Expand Down
6 changes: 0 additions & 6 deletions chrome/browser/about_flags.cc
Expand Up @@ -5684,12 +5684,6 @@ const FeatureEntry kFeatureEntries[] = {
flag_descriptions::kPrintServerScalingDescription, kOsCrOS,
FEATURE_VALUE_TYPE(chromeos::features::kPrintServerScaling)},

{"disable-peripheral-data-access-protection",
flag_descriptions::kDisablePeripheralDataAccessProtectionName,
flag_descriptions::kDisablePeripheralDataAccessProtectionDescription,
kOsCrOS,
FEATURE_VALUE_TYPE(
chromeos::features::kDisablePeripheralDataAccessProtection)},
#endif // BUILDFLAG(IS_CHROMEOS_ASH)

{"enable-portals", flag_descriptions::kEnablePortalsName,
Expand Down
6 changes: 0 additions & 6 deletions chrome/browser/flag-metadata.json
Expand Up @@ -1089,12 +1089,6 @@
],
"expiry_milestone": 88
},
{
"name": "disable-peripheral-data-access-protection",
"owners": [ "rajatja@google.com", "czajka@google.com",
"cros-peripherals@google.com" ],
"expiry_milestone": 94
},
{
"name": "disable-threaded-scrolling",
"owners": [ "bokan", "input-dev" ],
Expand Down
8 changes: 0 additions & 8 deletions chrome/browser/flag_descriptions.cc
Expand Up @@ -997,14 +997,6 @@ const char kMemlogStackModeNative[] = "Native";
const char kMemlogStackModeNativeWithThreadNames[] = "Native with thread names";
const char kMemlogStackModePseudo[] = "Trace events";

const char kDisablePeripheralDataAccessProtectionName[] =
"Turn off peripheral data access protection";
const char kDisablePeripheralDataAccessProtectionDescription[] =
"Disables data access protection for external PCI devices (including some "
"thunderbolt and SD Express devices that use PCI tunneling). By default "
"this feature is disabled, which blocks data access from external PCI "
"devices.";

const char kEnableLoginDetectionName[] = "Enable login detection";
const char kEnableLoginDetectionDescription[] =
"Allow user sign-in to be detected based on heuristics.";
Expand Down
3 changes: 0 additions & 3 deletions chrome/browser/flag_descriptions.h
Expand Up @@ -564,9 +564,6 @@ extern const char kMemlogStackModeNative[];
extern const char kMemlogStackModeNativeWithThreadNames[];
extern const char kMemlogStackModePseudo[];

extern const char kDisablePeripheralDataAccessProtectionName[];
extern const char kDisablePeripheralDataAccessProtectionDescription[];

extern const char kDownloadAutoResumptionNativeName[];
extern const char kDownloadAutoResumptionNativeDescription[];

Expand Down

0 comments on commit f1ad8d1

Please sign in to comment.