Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1675)

Unified Diff: chrome/browser/extensions/sandboxed_unpacker_unittest.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/menu_manager.cc ('k') | chrome/browser/extensions/startup_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/sandboxed_unpacker_unittest.cc
diff --git a/chrome/browser/extensions/sandboxed_unpacker_unittest.cc b/chrome/browser/extensions/sandboxed_unpacker_unittest.cc
index 1f5cb1bef772b4c84fe2d5deb11257aef6999f98..a0c73b53459683ba99609d502c184061384b7ee0 100644
--- a/chrome/browser/extensions/sandboxed_unpacker_unittest.cc
+++ b/chrome/browser/extensions/sandboxed_unpacker_unittest.cc
@@ -13,7 +13,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_manifest_constants.h"
+#include "chrome/common/extensions/manifest_handler.h"
#include "chrome/common/extensions/unpacker.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -67,9 +67,7 @@ class SandboxedUnpackerTest : public testing::Test {
// It will delete itself.
client_ = new MockSandboxedUnpackerClient;
client_->DelegateToFake();
- extensions::ManifestHandler::Register(
- extension_manifest_keys::kDefaultLocale,
- make_linked_ptr(new extensions::DefaultLocaleHandler));
+ (new extensions::DefaultLocaleHandler)->Register();
}
virtual void TearDown() {
@@ -77,6 +75,7 @@ class SandboxedUnpackerTest : public testing::Test {
// it posts a task to it.
sandboxed_unpacker_ = NULL;
loop_.RunUntilIdle();
+ ManifestHandler::ClearRegistryForTesting();
}
void SetupUnpacker(const std::string& crx_name) {
« no previous file with comments | « chrome/browser/extensions/menu_manager.cc ('k') | chrome/browser/extensions/startup_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698