BRM079_extensions-always-show-component-extensions-in-the-ext-list.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From: Joachim Bauch <jojo@struktur.de>
  2. Date: Thu, 25 Jun 2015 15:34:10 +0200
  3. Subject: extensions: always show component extensions in the ext list
  4. The attached patch makes sure that component extensions are always
  5. shown in "chrome://extensions".
  6. Currently these are
  7. - Bookmark Manager
  8. - Chromium PDF Viewer
  9. - CryptoTokenExtension
  10. References: https://github.com/iridium-browser/iridium-browser/issues/28
  11. ---
  12. extensions/common/extension.cc | 3 +++
  13. 1 file changed, 3 insertions(+)
  14. diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc
  15. --- a/extensions/common/extension.cc
  16. +++ b/extensions/common/extension.cc
  17. @@ -377,9 +377,12 @@ bool Extension::ShouldDisplayInExtensionSettings() const {
  18. }
  19. bool Extension::ShouldExposeViaManagementAPI() const {
  20. +#if 0
  21. // Hide component extensions because they are only extensions as an
  22. // implementation detail of Chrome.
  23. return !extensions::Manifest::IsComponentLocation(location());
  24. +#endif
  25. + return false;
  26. }
  27. Extension::ManifestData* Extension::GetManifestData(const std::string& key)
  28. --
  29. 2.7.4