| Index: chrome/common/extensions/extension_unittest.cc
|
| diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc
|
| index e4cd7fe6ca413aa65f947b258cd1e263dcd35efd..e9a27b54ac1a449b1e9804d53723abb57b6e1848 100644
|
| --- a/chrome/common/extensions/extension_unittest.cc
|
| +++ b/chrome/common/extensions/extension_unittest.cc
|
| @@ -14,6 +14,8 @@
|
| #include "base/utf_string_conversions.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/extensions/api/commands/commands_handler.h"
|
| +#include "chrome/common/extensions/api/commands/commands_handler.h"
|
| +#include "chrome/common/extensions/background_info.h"
|
| #include "chrome/common/extensions/command.h"
|
| #include "chrome/common/extensions/extension_file_util.h"
|
| #include "chrome/common/extensions/extension_manifest_constants.h"
|
| @@ -101,8 +103,12 @@ static scoped_refptr<Extension> LoadManifestStrict(
|
| class ExtensionTest : public testing::Test {
|
| protected:
|
| virtual void SetUp() OVERRIDE {
|
| - ManifestHandler::Register(extension_manifest_keys::kCommands,
|
| - make_linked_ptr(new CommandsHandler));
|
| + (new BackgroundManifestHandler)->Register();
|
| + (new CommandsHandler)->Register();
|
| + }
|
| +
|
| + virtual void TearDown() OVERRIDE {
|
| + ManifestHandler::ClearRegistryForTesting();
|
| }
|
| };
|
|
|
|
|