plugins: Add crash icon into the plugin crash alert infobar.
BUG=16681
TEST=go to youtube.com, then go to a video, shift-esc, end flash process, see
the infobar. Notice the icon in the left side.
Review URL: http://codereview.chromium.org/2835020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51039 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 25afd700..e3d1870 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1948,9 +1948,11 @@
#else
NOTIMPLEMENTED() << " convert plugin path to plugin name";
#endif
+ SkBitmap* crash_icon = ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ IDR_INFOBAR_PLUGIN_CRASHED);
AddInfoBar(new SimpleAlertInfoBarDelegate(
this, l10n_util::GetStringF(IDS_PLUGIN_CRASHED_PROMPT, plugin_name),
- NULL, true));
+ crash_icon, true));
}
void TabContents::OnCrashedWorker() {