disable-formatting-in-omnibox.patch 1.3 KB

123456789101112131415161718192021222324252627
  1. # Disables omission of URL elements in Omnibox
  2. --- a/components/url_formatter/url_formatter.cc
  3. +++ b/components/url_formatter/url_formatter.cc
  4. @@ -434,14 +434,14 @@ bool IDNToUnicodeOneComponent(const base
  5. } // namespace
  6. const FormatUrlType kFormatUrlOmitNothing = 0;
  7. -const FormatUrlType kFormatUrlOmitUsernamePassword = 1 << 0;
  8. -const FormatUrlType kFormatUrlOmitHTTP = 1 << 1;
  9. -const FormatUrlType kFormatUrlOmitTrailingSlashOnBareHostname = 1 << 2;
  10. -const FormatUrlType kFormatUrlOmitHTTPS = 1 << 3;
  11. -const FormatUrlType kFormatUrlOmitTrivialSubdomains = 1 << 5;
  12. -const FormatUrlType kFormatUrlTrimAfterHost = 1 << 6;
  13. -const FormatUrlType kFormatUrlOmitFileScheme = 1 << 7;
  14. -const FormatUrlType kFormatUrlOmitMailToScheme = 1 << 8;
  15. +const FormatUrlType kFormatUrlOmitUsernamePassword = 0 << 0;
  16. +const FormatUrlType kFormatUrlOmitHTTP = 0 << 1;
  17. +const FormatUrlType kFormatUrlOmitTrailingSlashOnBareHostname = 0 << 2;
  18. +const FormatUrlType kFormatUrlOmitHTTPS = 0 << 3;
  19. +const FormatUrlType kFormatUrlOmitTrivialSubdomains = 0 << 5;
  20. +const FormatUrlType kFormatUrlTrimAfterHost = 0 << 6;
  21. +const FormatUrlType kFormatUrlOmitFileScheme = 0 << 7;
  22. +const FormatUrlType kFormatUrlOmitMailToScheme = 0 << 8;
  23. const FormatUrlType kFormatUrlOmitDefaults =
  24. kFormatUrlOmitUsernamePassword | kFormatUrlOmitHTTP |