Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2696)

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 2835020: plugins: Add crash icon into the plugin crash alert infobar. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 25afd700814473c10cbe436ecf92863fbc0e1248..e3d1870c790c41692e78cca23afb9890f0930fd5 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1948,9 +1948,11 @@ void TabContents::OnCrashedPlugin(const FilePath& plugin_path) {
#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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698