Chromium Code Reviews| Index: chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
| diff --git a/chrome/browser/extensions/extension_disabled_infobar_delegate.cc b/chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
| index 94cbde5a778b5c6e4bf1104a88acf4bc11cbbf66..66b2a298b0dedeafd63f517d3d0382155319e700 100644 |
| --- a/chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
| +++ b/chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
| @@ -158,8 +158,9 @@ void ExtensionDisabledInfobarDelegate::Observe( |
| } else { |
| DCHECK_EQ(NotificationType::EXTENSION_UNLOADED, type.value); |
| UnloadedExtensionInfo* info = Details<UnloadedExtensionInfo>(details).ptr(); |
| - extension = (info->reason == UnloadedExtensionInfo::DISABLE) ? |
| - info->extension : NULL; |
| + if (info->reason == UnloadedExtensionInfo::DISABLE || |
|
Mihai Parparita -not on Chrome
2011/06/08 23:20:44
Won't this leave extension uninitialized if it's n
|
| + info->reason == UnloadedExtensionInfo::UNINSTALL) |
| + extension = info->extension; |
| } |
| if (extension == extension_) |
| tab_contents_->RemoveInfoBar(this); |