Restricts Crostini Usb device sharing to just adb (Android) devices.
This can be overridden with the new Crostini Usb Allow Unsupported flag.
Bug: 943429
Change-Id: Ic507bfc271a29258fd8a887ba36264bb7219597d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539484
Reviewed-by: Steven Bennetts <[email protected]>
Reviewed-by: Ben Wells <[email protected]>
Commit-Queue: Nicholas Verne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#645065}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 2a2d53c..b2b3337 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2534,6 +2534,10 @@
ENABLE_DISABLE_VALUE_TYPE(
chromeos::switches::kShowAndroidFilesInFilesApp,
chromeos::switches::kHideAndroidFilesInFilesApp)},
+ {"crostini-usb-allow-unsupported",
+ flag_descriptions::kCrostiniUsbAllowUnsupportedName,
+ flag_descriptions::kCrostiniUsbAllowUnsupportedDescription, kOsCrOS,
+ FEATURE_VALUE_TYPE(chromeos::features::kCrostiniUsbAllowUnsupported)},
{"crostini-usb-support", flag_descriptions::kCrostiniUsbSupportName,
flag_descriptions::kCrostiniUsbSupportDescription, kOsCrOS,
FEATURE_VALUE_TYPE(chromeos::features::kCrostiniUsbSupport)},