| Index: chrome/browser/tab_contents/infobar.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/infobar.cc (revision 102206)
|
| +++ chrome/browser/tab_contents/infobar.cc (working copy)
|
| @@ -102,10 +102,8 @@
|
| }
|
|
|
| void InfoBar::RemoveSelf() {
|
| - // |owner_| can be NULL here, e.g. because the user clicks the close button
|
| - // when the infobar is already closing.
|
| - if (delegate_ && owner_)
|
| - owner_->infobar_tab_helper()->RemoveInfoBar(delegate_);
|
| + DCHECK(owner_);
|
| + owner_->infobar_tab_helper()->RemoveInfoBar(delegate_);
|
| }
|
|
|
| void InfoBar::SetBarTargetHeight(int height) {
|
|
|