diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 21:10:11 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 21:10:11 +0000 |
commit | 6e2ef010f76be1ea7c5c45b17a375af68f8dd947 (patch) | |
tree | 4aa2db7a40fccc51a207c27b9114cc4f952fc330 /chrome | |
parent | ee7ced353fc577a12a6152707fb1a4ed05cc0a4a (diff) | |
download | chromium_src-6e2ef010f76be1ea7c5c45b17a375af68f8dd947.zip chromium_src-6e2ef010f76be1ea7c5c45b17a375af68f8dd947.tar.gz chromium_src-6e2ef010f76be1ea7c5c45b17a375af68f8dd947.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 13 |
1 files changed, 9 insertions, 4 deletions
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; |