[iOS][LO] Add CHECK to ensure non-empty vectors

Add CHECK to ensure that the vector is non empty before the pop. The
vector is already checked in CanGoBack which is called before these
methods.
https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/lens_overlay/model/lens_overlay_navigation_manager.mm;l=94-102;drc=3deaac799dc39f0ba14200463fd31bba49eb72a6

The CHECK is added to rule out this possibility during crash
investigation.

Bug: None
Change-Id: Iadbc3d02874ea10627c91b2a3ab3dbe6dde670b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6226800
Auto-Submit: Christian Xu <christianxu@chromium.org>
Reviewed-by: Ameur Hosni <ameurhosni@google.com>
Commit-Queue: Christian Xu <christianxu@chromium.org>
Commit-Queue: Ameur Hosni <ameurhosni@google.com>
Cr-Commit-Position: refs/heads/main@{#1415009}
NOKEYCHECK=True
GitOrigin-RevId: 91a5d3bd8bda5d16ad4afd59365e4917071626a1
1 file changed
tree: 209a2ee358408b6a0e197b94a8959d1a51ade053
  1. build/
  2. chrome/
  3. components/
  4. google_internal/
  5. intents/
  6. net/
  7. public/
  8. testing/
  9. third_party/
  10. tools/
  11. web/
  12. web_view/
  13. .swift-format
  14. BUILD.gn
  15. COMMON_METADATA
  16. DEPS
  17. DIR_METADATA
  18. features.gni
  19. OWNERS
  20. PRESUBMIT.py
  21. PRESUBMIT_test.py
  22. README.md
README.md

This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.