flags: remove enable-image-capture-api.

ImageCapture API has been stable from M59.
We can retire this flag now.

Bug: 518807
Change-Id: I78efd9694b9f2f34fb20fe1f760066b98e371708
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506073
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Cr-Commit-Position: refs/heads/master@{#638282}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 99900f07..34577849 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2130,9 +2130,6 @@
     {"enable-brotli", flag_descriptions::kEnableBrotliName,
      flag_descriptions::kEnableBrotliDescription, kOsAll,
      FEATURE_VALUE_TYPE(features::kBrotliEncoding)},
-    {"enable-image-capture-api", flag_descriptions::kEnableImageCaptureAPIName,
-     flag_descriptions::kEnableImageCaptureAPIDescription, kOsAll,
-     FEATURE_VALUE_TYPE(features::kImageCaptureAPI)},
 #if defined(OS_ANDROID)
     {"force-update-menu-type", flag_descriptions::kUpdateMenuTypeName,
      flag_descriptions::kUpdateMenuTypeDescription, kOsAndroid,
diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
index 38989c9..54e74de 100644
--- a/chrome/browser/flag-metadata.json
+++ b/chrome/browser/flag-metadata.json
@@ -1247,11 +1247,6 @@
     "expiry_milestone": 76
   },
   {
-    "name": "enable-image-capture-api",
-    // "owners": [ "your-team" ],
-    "expiry_milestone": 76
-  },
-  {
     "name": "enable-implicit-root-scroller",
     "owners": [ "bokan", "input-dev" ],
     "expiry_milestone": 75
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 7b7506a..ca43bd3 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -951,11 +951,6 @@
     "Enable the cloud-assisted pairingless BLE protocol for use with "
     "the Web Authentication API.";
 
-const char kEnableImageCaptureAPIName[] = "Image Capture API";
-const char kEnableImageCaptureAPIDescription[] =
-    "Enables the Web Platform Image Capture API: takePhoto(), "
-    "getPhotoCapabilities(), etc.";
-
 const char kEnableIncognitoWindowCounterName[] = "Incognito Window Counter";
 const char kEnableIncognitoWindowCounterDescription[] =
     "Shows the count of Incognito windows next to the Incognito icon on the "
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index bb95908a..f56922b 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -567,9 +567,6 @@
 extern const char kEnableWebUsbName[];
 extern const char kEnableWebUsbDescription[];
 
-extern const char kEnableImageCaptureAPIName[];
-extern const char kEnableImageCaptureAPIDescription[];
-
 extern const char kEnableIncognitoWindowCounterName[];
 extern const char kEnableIncognitoWindowCounterDescription[];
 
diff --git a/content/browser/image_capture/image_capture_impl.cc b/content/browser/image_capture/image_capture_impl.cc
index d19f143..d74489b 100644
--- a/content/browser/image_capture/image_capture_impl.cc
+++ b/content/browser/image_capture/image_capture_impl.cc
@@ -81,9 +81,6 @@
 // static
 void ImageCaptureImpl::Create(
     media::mojom::ImageCaptureRequest request) {
-  if (!base::FeatureList::IsEnabled(features::kImageCaptureAPI))
-    return;
-
   mojo::MakeStrongBinding(std::make_unique<ImageCaptureImpl>(),
                           std::move(request));
 }
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index f916c7e..426a68e 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -211,10 +211,6 @@
 const base::Feature kHistoryManipulationIntervention{
     "HistoryManipulationIntervention", base::FEATURE_DISABLED_BY_DEFAULT};
 
-// Enables/disables the Image Capture API.
-const base::Feature kImageCaptureAPI{"ImageCaptureAPI",
-                                     base::FEATURE_ENABLED_BY_DEFAULT};
-
 // This flag is used to set field parameters to choose predictor we use when
 // kResamplingInputEvents is disabled. It's used for gatherig accuracy metrics
 // on finch and also for choosing predictor type for predictedEvents API without
diff --git a/content/public/common/content_features.h b/content/public/common/content_features.h
index 8fee2dd..9cf84f4 100644
--- a/content/public/common/content_features.h
+++ b/content/public/common/content_features.h
@@ -55,7 +55,6 @@
 CONTENT_EXPORT extern const base::Feature kGuestViewCrossProcessFrames;
 CONTENT_EXPORT extern const base::Feature kHeapCompaction;
 CONTENT_EXPORT extern const base::Feature kHistoryManipulationIntervention;
-CONTENT_EXPORT extern const base::Feature kImageCaptureAPI;
 CONTENT_EXPORT extern const base::Feature kInputPredictorTypeChoice;
 CONTENT_EXPORT extern const base::Feature kIsolateOrigins;
 CONTENT_EXPORT extern const char kIsolateOriginsFieldTrialParamName[];