Index: webkit/tools/test_shell/test_shell.cc |
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc |
index 651635c8d06d8703cb26af1128f7536c669ffa6e..46d9184169e72ec740ac8001be01bc697eb1c3ed 100644 |
--- a/webkit/tools/test_shell/test_shell.cc |
+++ b/webkit/tools/test_shell/test_shell.cc |
@@ -685,7 +685,9 @@ bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
void GetPlugins(bool refresh, |
std::vector<webkit::npapi::WebPluginInfo>* plugins) { |
- webkit::npapi::PluginList::Singleton()->GetPlugins(refresh, plugins); |
+ if (refresh) |
+ webkit::npapi::PluginList::Singleton()->RefreshPlugins(); |
+ webkit::npapi::PluginList::Singleton()->GetPlugins(plugins); |
// Don't load the forked TestNetscapePlugIn in the chromium code, use |
// the copy in webkit.org's repository instead. |
const FilePath::StringType kPluginBlackList[] = { |