| Index: chrome/browser/plugins/plugin_observer.cc
|
| diff --git a/chrome/browser/plugins/plugin_observer.cc b/chrome/browser/plugins/plugin_observer.cc
|
| index 3aa24602cde77e1882a23285710c223815f6c479..de9973ef9b5ac94a3e2702cf23767f17d01b33a4 100644
|
| --- a/chrome/browser/plugins/plugin_observer.cc
|
| +++ b/chrome/browser/plugins/plugin_observer.cc
|
| @@ -225,11 +225,9 @@ void PluginObserver::PluginCrashed(const base::FilePath& plugin_path,
|
| UMA_HISTOGRAM_COUNTS("Plugin.ShowCrashedInfobar", 1);
|
| #endif
|
|
|
| - gfx::Image* icon = &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
|
| - IDR_INFOBAR_PLUGIN_CRASHED);
|
| SimpleAlertInfoBarDelegate::Create(
|
| - InfoBarService::FromWebContents(web_contents()), icon, infobar_text,
|
| - true);
|
| + InfoBarService::FromWebContents(web_contents()),
|
| + IDR_INFOBAR_PLUGIN_CRASHED, infobar_text, true);
|
| }
|
|
|
| bool PluginObserver::OnMessageReceived(const IPC::Message& message) {
|
| @@ -382,8 +380,7 @@ void PluginObserver::OnCouldNotLoadPlugin(const base::FilePath& plugin_path) {
|
| PluginService::GetInstance()->GetPluginDisplayNameByPath(plugin_path);
|
| SimpleAlertInfoBarDelegate::Create(
|
| InfoBarService::FromWebContents(web_contents()),
|
| - &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
|
| - IDR_INFOBAR_PLUGIN_CRASHED),
|
| + IDR_INFOBAR_PLUGIN_CRASHED,
|
| l10n_util::GetStringFUTF16(IDS_PLUGIN_INITIALIZATION_ERROR_PROMPT,
|
| plugin_name),
|
| true /* auto_expire */);
|
|
|