Commit acdcae84 authored by sadrul@chromium.org's avatar sadrul@chromium.org

touchui login: Fix a crash in debug build in the login screen.

The status area for the login screen is created at startup, so it is not necessary to recreate it after the page has completed rendering.

BUG=none
TEST=manually: start chrome with the login screen in a debug touchui build.

Review URL: http://codereview.chromium.org/7645024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96780 0039d316-1c4b-4281-b951-d872f2087c98
parent 21d7a4e3
......@@ -120,7 +120,8 @@ void TouchLoginView::Layout() {
}
void TouchLoginView::InitStatusArea() {
DCHECK(status_area_ == NULL);
if (status_area_)
return;
status_area_ = new StatusAreaView(this);
status_area_->Init();
AddChildView(status_area_);
......
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