Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > e0cbec204092c5cb6a50e502ee27347b > files > 3

chromium-browser-stable-89.0.4389.90-1.mga7.src.rpm

--- chromium-60.0.3112.40/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc.no-external-components	2017-06-23 23:37:14.038911768 +0200
+++ chromium-60.0.3112.40/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc	2017-06-23 23:49:00.077985242 +0200
@@ -27,8 +27,10 @@ namespace extensions {
 
 bool IsComponentExtensionAllowlisted(const std::string& extension_id) {
   const char* const kAllowed[] = {
+#if 0
     extension_misc::kInAppPaymentsSupportAppId,
     extension_misc::kCastExtensionIdRelease,
+#endif
     extension_misc::kPdfExtensionId,
 #if BUILDFLAG(IS_CHROMEOS_ASH)
     extension_misc::kAssessmentAssistantExtensionId,
@@ -61,41 +63,6 @@ bool IsComponentExtensionAllowlisted(con
 }
 
 bool IsComponentExtensionAllowlisted(int manifest_resource_id) {
-  switch (manifest_resource_id) {
-    // Please keep the list in alphabetical order.
-    case IDR_CRYPTOTOKEN_MANIFEST:
-    case IDR_FEEDBACK_MANIFEST:
-#if BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION)
-    case IDR_HANGOUT_SERVICES_MANIFEST:
-#endif
-    case IDR_IDENTITY_API_SCOPE_APPROVAL_MANIFEST:
-    case IDR_NETWORK_SPEECH_SYNTHESIS_MANIFEST:
-    case IDR_WEBSTORE_MANIFEST:
-
-#if BUILDFLAG(IS_CHROMEOS_ASH)
-    // Separate ChromeOS list, as it is quite large.
-    case IDR_ARC_SUPPORT_MANIFEST:
-    case IDR_AUDIO_PLAYER_MANIFEST:
-    case IDR_CHROME_APP_MANIFEST:
-    case IDR_CONNECTIVITY_DIAGNOSTICS_LAUNCHER_MANIFEST:
-    case IDR_CONNECTIVITY_DIAGNOSTICS_MANIFEST:
-    case IDR_DEMO_APP_MANIFEST:
-    case IDR_ECHO_MANIFEST:
-    case IDR_FILEMANAGER_MANIFEST:
-    case IDR_GALLERY_MANIFEST:
-    case IDR_IMAGE_LOADER_MANIFEST:
-    case IDR_KEYBOARD_MANIFEST:
-    case IDR_MOBILE_MANIFEST:
-    case IDR_VIDEO_PLAYER_MANIFEST:
-    case IDR_WALLPAPERMANAGER_MANIFEST:
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
-    case IDR_HELP_MANIFEST:
-    case IDR_QUICKOFFICE_MANIFEST:
-#endif  // BUILDFLAG(GOOGLE_CHROME_BRANDING)
-#endif  // BUILDFLAG(IS_CHROMEOS_ASH)
-      return true;
-  }
-
   LOG(ERROR) << "Component extension with manifest resource id "
              << manifest_resource_id << " not in allowlist and is not being "
              << "loaded as a result.";