From d32d46180799e50f74d8b27fc1e5ab1454dbcef0 Mon Sep 17 00:00:00 2001 From: "stuartmorgan@google.com" Date: Thu, 23 Jul 2009 00:09:35 +0000 Subject: Flip on crashed plugin name lookup on the Mac. BUG=none TEST=Running with --enable-plugins on, go to a page with a plugin and kill the plugin process. The info bar should list the name of the plugin rather than its path. Review URL: http://codereview.chromium.org/155952 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21347 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/tab_contents.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 79b78eb..e91f188 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -1544,7 +1544,7 @@ void TabContents::OnCrashedPlugin(const FilePath& plugin_path) { DCHECK(!plugin_path.value().empty()); std::wstring plugin_name = plugin_path.ToWStringHack(); -#if defined(OS_WIN) +#if defined(OS_WIN) || defined(OS_MACOSX) scoped_ptr version_info( FileVersionInfo::CreateFileVersionInfo(plugin_path)); if (version_info.get()) { -- cgit v1.1