OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/glue/plugins/plugin_list.h" | 5 #include "webkit/glue/plugins/plugin_list.h" |
6 | 6 |
7 #include <tchar.h> | 7 #include <tchar.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/registry.h" | 15 #include "base/registry.h" |
16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
| 18 #include "base/string_split.h" |
18 #include "base/string_util.h" | 19 #include "base/string_util.h" |
19 #include "webkit/glue/plugins/plugin_constants_win.h" | 20 #include "webkit/glue/plugins/plugin_constants_win.h" |
20 #include "webkit/glue/plugins/plugin_lib.h" | 21 #include "webkit/glue/plugins/plugin_lib.h" |
21 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 const TCHAR kRegistryApps[] = | 26 const TCHAR kRegistryApps[] = |
26 _T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"); | 27 _T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"); |
27 const TCHAR kRegistryFirefox[] = _T("firefox.exe"); | 28 const TCHAR kRegistryFirefox[] = _T("firefox.exe"); |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 for (size_t i = 0; i < plugins->size(); ++i) { | 399 for (size_t i = 0; i < plugins->size(); ++i) { |
399 if ((*plugins)[i].path.BaseName().value() == kNewWMPPlugin) | 400 if ((*plugins)[i].path.BaseName().value() == kNewWMPPlugin) |
400 return false; | 401 return false; |
401 } | 402 } |
402 } | 403 } |
403 | 404 |
404 return true; | 405 return true; |
405 } | 406 } |
406 | 407 |
407 } // namespace NPAPI | 408 } // namespace NPAPI |
OLD | NEW |