Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1576)

Unified Diff: webkit/plugins/npapi/plugin_list_win.cc

Issue 10274003: Merge 133096 - Don't search root paths for MS WMP plugin (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_list_win.cc
===================================================================
--- webkit/plugins/npapi/plugin_list_win.cc (revision 134513)
+++ webkit/plugins/npapi/plugin_list_win.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -165,26 +165,6 @@
FilePath path;
if (GetInstalledPath(kRegistryWindowsMedia, &path))
plugin_dirs->insert(path);
-
- // If the Windows Media Player Firefox plugin is installed before Firefox,
- // the plugin will get written under PFiles\Plugins on one the drives
- // (usually, but not always, the last letter).
- int size = GetLogicalDriveStrings(0, NULL);
- if (size) {
- scoped_array<wchar_t> strings(new wchar_t[size]);
- if (GetLogicalDriveStrings(size, strings.get())) {
- wchar_t* next_drive = strings.get();
- while (*next_drive) {
- if (GetDriveType(next_drive) == DRIVE_FIXED) {
- FilePath pfiles(next_drive);
- pfiles = pfiles.Append(L"PFiles\\Plugins");
- if (file_util::PathExists(pfiles))
- plugin_dirs->insert(pfiles);
- }
- next_drive = &next_drive[wcslen(next_drive) + 1];
- }
- }
- }
}
// Hardcoded logic to detect Java plugin location.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698