summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 20:49:59 +0000
committerkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 20:49:59 +0000
commitde945c861f68df1f16d58b0570332976fed57f7d (patch)
tree93fb838cf4ace27106a90dc8f11a883da988f256 /chrome
parenta755dc2df6712d2965b3ea2e6a0e90fe5fb3d0a3 (diff)
downloadchromium_src-de945c861f68df1f16d58b0570332976fed57f7d.zip
chromium_src-de945c861f68df1f16d58b0570332976fed57f7d.tar.gz
chromium_src-de945c861f68df1f16d58b0570332976fed57f7d.tar.bz2
Fixes to 10.6 port of GPU plugin after recent backport to 10.5 and
(apparently) other recent changes. BUG=none TEST=ran Pepper test plugin with both 10.6 and 10.5 code paths Review URL: http://codereview.chromium.org/661391 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/plugin/plugin_thread.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc
index c46de35..59d243d 100644
--- a/chrome/plugin/plugin_thread.cc
+++ b/chrome/plugin/plugin_thread.cc
@@ -86,18 +86,18 @@ PluginThread::PluginThread()
NPAPI::PluginLib::CreatePluginLib(plugin_path_);
if (plugin.get()) {
plugin->NP_Initialize();
- }
#if defined(OS_MACOSX)
- scoped_cftyperef<CFStringRef> plugin_name(base::SysWideToCFStringRef(
- plugin->plugin_info().name));
- scoped_cftyperef<CFStringRef> app_name(base::SysUTF16ToCFStringRef(
- l10n_util::GetStringUTF16(IDS_SHORT_PLUGIN_APP_NAME)));
- scoped_cftyperef<CFStringRef> process_name(CFStringCreateWithFormat(
- kCFAllocatorDefault, NULL, CFSTR("%@ (%@)"),
- plugin_name.get(), app_name.get()));
- mac_util::SetProcessName(process_name);
+ scoped_cftyperef<CFStringRef> plugin_name(base::SysWideToCFStringRef(
+ plugin->plugin_info().name));
+ scoped_cftyperef<CFStringRef> app_name(base::SysUTF16ToCFStringRef(
+ l10n_util::GetStringUTF16(IDS_SHORT_PLUGIN_APP_NAME)));
+ scoped_cftyperef<CFStringRef> process_name(CFStringCreateWithFormat(
+ kCFAllocatorDefault, NULL, CFSTR("%@ (%@)"),
+ plugin_name.get(), app_name.get()));
+ mac_util::SetProcessName(process_name);
#endif
+ }
// Certain plugins, such as flash, steal the unhandled exception filter
// thus we never get crash reports when they fault. This call fixes it.