diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 16:57:58 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 16:57:58 +0000 |
commit | 2f2a8e4bf18a837dbb8c786402bdafbb859ff78a (patch) | |
tree | b7627791bf03722691377ba416a951d9d612ea21 /chrome/browser/ui/browser_init.cc | |
parent | 71f381a8807aa40b5076d51f091528dac467ea09 (diff) | |
download | chromium_src-2f2a8e4bf18a837dbb8c786402bdafbb859ff78a.zip chromium_src-2f2a8e4bf18a837dbb8c786402bdafbb859ff78a.tar.gz chromium_src-2f2a8e4bf18a837dbb8c786402bdafbb859ff78a.tar.bz2 |
Fix presentation of infobar for non-warning messages. Their colour is
currently yellow, but should be blue like other non-warning messages.
The bug mentions 3 infobars: save passwords, did you mean..., and always
restore. However, save passwords is already the correct colour, so I only
needed to fix the two others.
BUG=9037
TEST=Force the display of the corresponding infobar and look at the colour.
Review URL: http://codereview.chromium.org/6312188
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74295 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_init.cc')
-rw-r--r-- | chrome/browser/ui/browser_init.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc index f062f37..41a7ada 100644 --- a/chrome/browser/ui/browser_init.cc +++ b/chrome/browser/ui/browser_init.cc @@ -305,6 +305,7 @@ class SessionCrashedInfoBarDelegate : public ConfirmInfoBarDelegate { // ConfirmInfoBarDelegate: virtual void InfoBarClosed(); virtual SkBitmap* GetIcon() const; + virtual Type GetInfoBarType() const; virtual string16 GetMessageText() const; virtual int GetButtons() const; virtual string16 GetButtonLabel(InfoBarButton button) const; @@ -334,6 +335,10 @@ SkBitmap* SessionCrashedInfoBarDelegate::GetIcon() const { IDR_INFOBAR_RESTORE_SESSION); } +InfoBarDelegate::Type SessionCrashedInfoBarDelegate::GetInfoBarType() const { + return PAGE_ACTION_TYPE; +} + string16 SessionCrashedInfoBarDelegate::GetMessageText() const { return l10n_util::GetStringUTF16(IDS_SESSION_CRASHED_VIEW_MESSAGE); } |