Commit f12910da authored by Carlos Knippschild's avatar Carlos Knippschild Committed by Commit Bot

Add log to DCHECK to help in debugging its triggering

TBR=johnchen@chromium.org

Bug: 852616
Change-Id: I8046cc162d1cb39d9809bd2bcd3a09b3a29212b8
Reviewed-on: https://chromium-review.googlesource.com/1100125Reviewed-by: default avatarCarlos Knippschild <carlosk@chromium.org>
Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Carlos Knippschild <carlosk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567120}
parent 7220ee51
...@@ -467,7 +467,9 @@ void RecentTabHelper::SavePageCallback(SnapshotProgressInfo* snapshot_info, ...@@ -467,7 +467,9 @@ void RecentTabHelper::SavePageCallback(SnapshotProgressInfo* snapshot_info,
int64_t offline_id) { int64_t offline_id) {
DCHECK((snapshot_info->IsForLastN() && DCHECK((snapshot_info->IsForLastN() &&
snapshot_info->request_id == OfflinePageModel::kInvalidOfflineId) || snapshot_info->request_id == OfflinePageModel::kInvalidOfflineId) ||
snapshot_info->request_id == offline_id); snapshot_info->request_id == offline_id)
<< "IsForLastN: " << snapshot_info->IsForLastN()
<< ", request_id: " << snapshot_info->request_id;
// Store the assigned offline_id (for downloads case it will already contain // Store the assigned offline_id (for downloads case it will already contain
// the same value). // the same value).
snapshot_info->request_id = offline_id; snapshot_info->request_id = offline_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment