[iOS][Feed]Reuse a variable

As far as I can tell, there was no reason to have two distinct feed_top_section_view_controller_.
On the contrary, this created two issues:
* the consumer became nil during the test execution at some non-
deterministic time. Indeed, the consumer is weakly retained and no
variable retained the argument sent as consumer.
* the tests were calling methods to a view controller the consumer
could not access. This mean that we could not really test the
interaction between both objects.

Bug: 315992978
Change-Id: I12e17d6c2960b50629e52e3adefae680e41e4391
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6239778
Reviewed-by: Adam Arcaro <adamta@google.com>
Auto-Submit: Arthur Milchior <arthurmilchior@chromium.org>
Commit-Queue: Arthur Milchior <arthurmilchior@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1417324}
NOKEYCHECK=True
GitOrigin-RevId: 675fa9c2f6ceef101f10efef5e541a8f3339dfdc
1 file changed
tree: 43ccdeffaf2a9657e5a864c40c238091efcccd2f
  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.