diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-24 22:51:02 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-24 22:51:02 +0000 |
commit | 3193859e2866285a272383c2ba35829ccb4e3f6e (patch) | |
tree | 8bcbb35ddbc81b692182ffb74559ffa1e2b78d77 /chrome/browser/plugin_service.cc | |
parent | 190a17a1083f6634348c4f13f07d83243a2bd8e1 (diff) | |
download | chromium_src-3193859e2866285a272383c2ba35829ccb4e3f6e.zip chromium_src-3193859e2866285a272383c2ba35829ccb4e3f6e.tar.gz chromium_src-3193859e2866285a272383c2ba35829ccb4e3f6e.tar.bz2 |
Do case-insensitive checks for the plugin paths in case a user has different shortcuts to the Chrome binary.
Review URL: http://codereview.chromium.org/2155004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_service.cc')
-rw-r--r-- | chrome/browser/plugin_service.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc index d0a56ba..5a77ee2 100644 --- a/chrome/browser/plugin_service.cc +++ b/chrome/browser/plugin_service.cc @@ -101,7 +101,7 @@ void PluginService::InitGlobalInstance(Profile* profile) { bool enabled = true; plugin->GetBoolean(L"enabled", &enabled); - if (path == pdf_path_str) { + if (FilePath::CompareIgnoreCase(path, pdf_path_str) == 0) { found_internal_pdf = true; if (!enabled && force_enable_internal_pdf) { enabled = true; @@ -110,7 +110,9 @@ void PluginService::InitGlobalInstance(Profile* profile) { } FilePath plugin_path(path); - if (update_internal_dir && plugin_path.DirName() == last_internal_dir) { + if (update_internal_dir && + FilePath::CompareIgnoreCase(plugin_path.DirName().value(), + last_internal_dir.value()) == 0) { // If the internal plugin directory has changed and if the plugin looks // internal, update its path in the prefs. plugin_path = cur_internal_dir.Append(plugin_path.BaseName()); |