[merge-m86] Sort "related files" navigation order by name in chrome://media-app

Current sort order is by modification time, which means mixed photos
and videos from the camera app always "get older" when pressing right.
However, feedback suggests this is confusing when opening the gallery
from the files app.

Sorting by name instead is more likely to match the sorting field
in the files app, and consistent with what the old gallery app did. The
order defaults to reverse-lexicographic so that pressing "right" still
goes to older files from the camera app.

(cherry picked from commit 46015334ca3959c7830bbe6f419da81443ec0698)

Bug: b/169012791
Change-Id: I2240ca022519a52f04cd5c1ca1f42f29d014a6ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2419099
Commit-Queue: Trent Apted <tapted@chromium.org>
Reviewed-by: Patti <patricialor@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#808783}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423127
Cr-Commit-Position: refs/branch-heads/4240@{#940}
Cr-Branched-From: f297677702651916bbf65e59c0d4bbd4ce57d1ee-refs/heads/master@{#800218}
2 files changed
tree: c5d2ef9912b5918bfaebdc425302beaee1ef4b8f
  1. .clang-format
  2. .clang-tidy
  3. .eslintrc.js
  4. .git-blame-ignore-revs
  5. .gitattributes
  6. .gitignore
  7. .gn
  8. .vpython
  9. .vpython3
  10. .yapfignore
  11. AUTHORS
  12. BUILD.gn
  13. CODE_OF_CONDUCT.md
  14. DEPS
  15. DIR_METADATA
  16. ENG_REVIEW_OWNERS
  17. LICENSE
  18. LICENSE.chromium_os
  19. OWNERS
  20. PRESUBMIT.py
  21. PRESUBMIT_test.py
  22. PRESUBMIT_test_mocks.py
  23. README.md
  24. WATCHLISTS
  25. android_webview/
  26. apps/
  27. ash/
  28. base/
  29. build/
  30. build_overrides/
  31. buildtools/
  32. cc/
  33. chrome/
  34. chromecast/
  35. chromeos/
  36. cloud_print/
  37. codereview.settings
  38. components/
  39. content/
  40. courgette/
  41. crypto/
  42. dbus/
  43. device/
  44. docs/
  45. extensions/
  46. fuchsia/
  47. gin/
  48. google_apis/
  49. google_update/
  50. gpu/
  51. headless/
  52. infra/
  53. ios/
  54. ipc/
  55. jingle/
  56. media/
  57. mojo/
  58. native_client_sdk/
  59. net/
  60. pdf/
  61. ppapi/
  62. printing/
  63. remoting/
  64. rlz/
  65. sandbox/
  66. services/
  67. skia/
  68. sql/
  69. storage/
  70. styleguide/
  71. testing/
  72. third_party/
  73. tools/
  74. ui/
  75. url/
  76. weblayer/
README.md

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.