Index: content/browser/plugin_service.cc |
diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc |
index 378ee2849f5d899ae5c09a7a296834b7d097330e..864ed98773be5d54812fd6e781d6fd583cddab17 100644 |
--- a/content/browser/plugin_service.cc |
+++ b/content/browser/plugin_service.cc |
@@ -508,8 +508,11 @@ void PluginService::GetPlugins(const GetPluginsCallback& callback) { |
target_loop->PostTask(FROM_HERE, |
base::Bind(&RunGetPluginsCallback, callback, cached_plugins)); |
} else { |
+ if (!plugin_loader_.get()) |
+ plugin_loader_ = new PluginLoaderPosix; |
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
- base::Bind(&PluginLoaderPosix::LoadPlugins, target_loop, callback)); |
+ base::Bind(&PluginLoaderPosix::LoadPlugins, plugin_loader_, |
+ target_loop, callback)); |
} |
#endif |
} |