Chromium Code Reviews
DescriptionMinor improvements to RecentTabHelper.
Adds minor improvements to RecentTabHelper:
- Better organize the state kept during the async call chain of a snapshot
save: always invalidate pointers when needed and convert if-checks of
|download_info| to DCHECKs.
- Add more verifications the the navigation type before accepting to
save a snapshot for it.
- Removed the unneeded IsSamePage method.
- Added isSnapshottingForLastN to make it clearer what the request_id checks
exist for.
- Move member initializers to the header file.
- Some minor code simplifications.
This is a preparation step to change the snapshot mechanism to use user
interaction triggers instead of navigation events.
BUG=678367
Review-Url: https://codereview.chromium.org/2635023005
Cr-Commit-Position: refs/heads/master@{#444262}
Committed: https://chromium.googlesource.com/chromium/src/+/fd10fe94ba828949dcddd148fb73c3797ab83ef3
Patch Set 1 #Patch Set 2 : A couple more things I had forgotten. #
Total comments: 17
Patch Set 3 : Address reviewer's comments; Removed IsExternalProtocol check due to test crash. #Patch Set 4 : Removed unneeded DCHECK_CURRENTLY_ON. #
Messages
Total messages: 17 (11 generated)
|
|||||||||||||||||||||||||||||||||||||