From 6e2ef010f76be1ea7c5c45b17a375af68f8dd947 Mon Sep 17 00:00:00 2001 From: "mpcomplete@google.com" Date: Fri, 31 Oct 2008 21:10:11 +0000 Subject: Fix regression of b/issue?id=1280317. We need to do a case-insensitive compare of filenames to test if a plugin is Gears. BUG=1280317 Review URL: http://codereview.chromium.org/8784 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4322 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/plugin_process_host.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index 2fc227e..2f84e57 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -441,10 +441,15 @@ bool PluginProcessHost::Init(const std::wstring& dll, watcher_.StartWatching(process_.handle(), this); std::wstring gears_path; - if (PathService::Get(chrome::FILE_GEARS_PLUGIN, &gears_path) && - dll == gears_path) { - // Give Gears plugins "background" priority. See http://b/issue?id=1280317. - process_.SetProcessBackgrounded(true); + std::wstring dll_lc = dll; + if (PathService::Get(chrome::FILE_GEARS_PLUGIN, &gears_path)) { + StringToLowerASCII(&gears_path); + StringToLowerASCII(&dll_lc); + if (dll_lc == gears_path) { + // Give Gears plugins "background" priority. See + // http://b/issue?id=1280317. + process_.SetProcessBackgrounded(true); + } } opening_channel_ = true; -- cgit v1.1