Fix crash on Enrollment screen.
commit97422a9583d83ea837f889a2e23adb157092f9ae
authorginkage <ginkage@chromium.org>
Wed, 22 Apr 2015 16:55:44 +0000 (22 09:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Apr 2015 16:55:56 +0000 (22 16:55 +0000)
tree48f9453c9305bd78fed6cde7e5474ddc2261b7a6
parent688810bc04d0350fa5966e23fda264df72f1c546
Fix crash on Enrollment screen.

This is a sequel to crbug/470977, with a similar cause. This time, crash
is induced by WizardController re-creation, so the old NetworkErrorModel
pointers become invalid. Lesson learned: WizardController should NOT be
the owner of an ErrorScreen instance.

BUG=479666

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

Cr-Commit-Position: refs/heads/master@{#326317}
chrome/browser/chromeos/login/screen_manager.h
chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
chrome/browser/chromeos/login/ui/oobe_display.h
chrome/browser/chromeos/login/wizard_controller.cc
chrome/browser/chromeos/login/wizard_controller.h
chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
chrome/browser/ui/webui/chromeos/login/oobe_ui.h