Refactor PluginService to take PluginList as a dependency.
Also creates MockPluginService for use in tests.
BUG=103788,chromium-os:22447
TEST=none
Review URL: http://codereview.chromium.org/8493019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109532 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 36ab753b7..baf12d06 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -787,6 +787,7 @@
// on the main thread. The service ctor is inexpensive and does not
// invoke the io_thread() accessor.
PluginService* plugin_service = PluginService::GetInstance();
+ plugin_service->Init();
plugin_service->set_filter(ChromePluginServiceFilter::GetInstance());
plugin_service->StartWatchingPlugins();