Make sure the PluginService singleton is destroyed at the end of ExtensionServiceTestSimple.Enabledness.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11359164
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167388 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 999f072..796b65f 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -8,6 +8,7 @@
#include <set>
#include <vector>
+#include "base/at_exit.h"
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -4545,6 +4546,9 @@
scoped_ptr<CommandLine> command_line;
FilePath install_dir = profile->GetPath()
.AppendASCII(ExtensionService::kInstallDirectoryName);
+
+ // Make sure the PluginService singleton is destroyed at the end of the test.
+ base::ShadowingAtExitManager at_exit;
webkit::npapi::MockPluginList plugin_list;
PluginService::GetInstance()->SetPluginListForTesting(&plugin_list);