diff options
Diffstat (limited to 'chrome/browser/plugin_process_host.cc')
-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; |