| Index: chrome/browser/infobars/infobar_delegate.cc
|
| diff --git a/chrome/browser/infobars/infobar_delegate.cc b/chrome/browser/infobars/infobar_delegate.cc
|
| index 719b99fa6fa88b4616c75ffd2194d4c904b90bc8..0b65319e5a2c3b2c313ef5b956eb77bfcaf3bea5 100644
|
| --- a/chrome/browser/infobars/infobar_delegate.cc
|
| +++ b/chrome/browser/infobars/infobar_delegate.cc
|
| @@ -11,6 +11,7 @@
|
| #include "content/public/browser/navigation_details.h"
|
| #include "content/public/browser/navigation_entry.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "ui/base/resource/resource_bundle.h"
|
|
|
| using content::NavigationEntry;
|
|
|
| @@ -39,8 +40,8 @@ bool InfoBarDelegate::ShouldExpire(
|
| void InfoBarDelegate::InfoBarDismissed() {
|
| }
|
|
|
| -gfx::Image* InfoBarDelegate::GetIcon() const {
|
| - return NULL;
|
| +int InfoBarDelegate::GetIconID() const {
|
| + return -1;
|
| }
|
|
|
| InfoBarDelegate::Type InfoBarDelegate::GetInfoBarType() const {
|
| @@ -91,6 +92,12 @@ TranslateInfoBarDelegate* InfoBarDelegate::AsTranslateInfoBarDelegate() {
|
| return NULL;
|
| }
|
|
|
| +gfx::Image* InfoBarDelegate::GetIcon() const {
|
| + int icon_id = GetIconID();
|
| + return (icon_id == -1) ?
|
| + NULL : &ResourceBundle::GetSharedInstance().GetNativeImageNamed(icon_id);
|
| +}
|
| +
|
| InfoBarDelegate::InfoBarDelegate(InfoBarService* infobar_service)
|
| : contents_unique_id_(0),
|
| owner_(infobar_service) {
|
|
|