From b71ffc6c2a90e8dcf670fd7c7b6df8dca4ca50c3 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Thu, 9 Oct 2008 20:39:14 +0000 Subject: Look for Adobe Acrobat as well. BUG=1583 Review URL: http://codereview.chromium.org/6293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3124 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/plugins/plugin_list.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'webkit/glue/plugins/plugin_list.cc') diff --git a/webkit/glue/plugins/plugin_list.cc b/webkit/glue/plugins/plugin_list.cc index d86d14fe..e10bfc7 100644 --- a/webkit/glue/plugins/plugin_list.cc +++ b/webkit/glue/plugins/plugin_list.cc @@ -31,7 +31,8 @@ scoped_refptr PluginList::singleton_; static const TCHAR kRegistryApps[] = _T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"); static const TCHAR kRegistryFirefox[] = _T("firefox.exe"); -static const TCHAR kRegistryAcrobat[] = _T("AcroRd32.exe"); +static const TCHAR kRegistryAcrobat[] = _T("Acrobat.exe"); +static const TCHAR kRegistryAcrobatReader[] = _T("AcroRd32.exe"); static const TCHAR kRegistryWindowsMedia[] = _T("wmplayer.exe"); static const TCHAR kRegistryQuickTime[] = _T("QuickTimePlayer.exe"); static const TCHAR kRegistryPath[] = _T("Path"); @@ -407,10 +408,13 @@ void PluginList::LoadFirefoxPlugins() { void PluginList::LoadAcrobatPlugins() { std::wstring path; - if (GetInstalledPath(kRegistryAcrobat, &path)) { - path.append(L"\\Browser"); - LoadPlugins(path); + if (!GetInstalledPath(kRegistryAcrobatReader, &path) && + !GetInstalledPath(kRegistryAcrobat, &path)) { + return; } + + path.append(L"\\Browser"); + LoadPlugins(path); } void PluginList::LoadQuicktimePlugins() { -- cgit v1.1