Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Issue 2873393004: [Offline pages] Stop observing web contents and reset to null after use. Only create a new web cont… (Closed)

Created:
3 years, 7 months ago by carlosk
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3071
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Stop observing web contents and reset to null after use. Only create a new web contents when we need it. (M59 merge) Before this change, we will create a new webcontents in preparation for a request that might not come in for hours or days. During the waiting period, a number of things can happen which may result in things related to the webcontents to become stale and therefore crash when we actually do use it. One hypothesis is that a render process host might be created without any render processes attached to it, causing the host to be removed under certain memory pressures or when certain clean-up processes are triggered. For better memory and freshness, we should probably only create a web contents when we actually need it anyway, and clean up everything after we use it. BUG=714272, 709443 Review-Url: https://codereview.chromium.org/2866643005 Cr-Original-Commit-Position: refs/heads/master@{#469906} Review-Url: https://codereview.chromium.org/2873393004 . Cr-Commit-Position: refs/branch-heads/3071@{#521} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/339b80c4f9ff8e29b73b0842570be8b852f2340f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -14 lines) Patch
M chrome/browser/android/offline_pages/background_loader_offliner.h View 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
carlosk
3 years, 7 months ago (2017-05-11 22:44:57 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
339b80c4f9ff8e29b73b0842570be8b852f2340f.

Powered by Google App Engine
This is Rietveld 408576698