Fix case where ErrorPageController outlives the frame it's attached to.
commita25c24fc722cf162ab92408670e7d47b8c3e6994
authormmenke <mmenke@chromium.org>
Tue, 4 Aug 2015 20:38:54 +0000 (4 13:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Aug 2015 20:43:55 +0000 (4 20:43 +0000)
treeede30b3dae574c4123948844f706c25b14efb2c7
parent93102bcfca81af17e97fcad1c28b027fa7cad114
Fix case where ErrorPageController outlives the frame it's attached to.

ErrorPageController could call into NetErrorHelper after the page it's
attached to was destroyed.  This CL gives the controller a weak pointer
to the NetErrorHelper that's invalidated on commit, which should fix
the issue.

BUG=500556

Review URL: https://codereview.chromium.org/1259653003

Cr-Commit-Position: refs/heads/master@{#341785}
chrome/renderer/net/net_error_helper.cc
chrome/renderer/net/net_error_helper.h
chrome/renderer/net/net_error_page_controller.cc
chrome/renderer/net/net_error_page_controller.h
components/error_page/renderer/net_error_helper_core.h