summaryrefslogtreecommitdiffstats
path: root/chrome/utility
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/utility')
-rw-r--r--chrome/utility/extensions/unpacker.cc10
-rw-r--r--chrome/utility/extensions/unpacker_unittest.cc10
2 files changed, 10 insertions, 10 deletions
diff --git a/chrome/utility/extensions/unpacker.cc b/chrome/utility/extensions/unpacker.cc
index 09cb224a..f2c6727 100644
--- a/chrome/utility/extensions/unpacker.cc
+++ b/chrome/utility/extensions/unpacker.cc
@@ -21,11 +21,11 @@
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_file_util.h"
#include "chrome/common/extensions/extension_l10n_util.h"
-#include "chrome/common/extensions/extension_manifest_constants.h"
#include "content/public/child/image_decoder_utils.h"
#include "content/public/common/common_param_traits.h"
#include "extensions/common/constants.h"
#include "extensions/common/manifest.h"
+#include "extensions/common/manifest_constants.h"
#include "grit/generated_resources.h"
#include "ipc/ipc_message_utils.h"
#include "net/base/file_stream.h"
@@ -34,11 +34,13 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/size.h"
-namespace errors = extension_manifest_errors;
-namespace keys = extensions::manifest_keys;
+namespace extensions {
namespace {
+namespace errors = manifest_errors;
+namespace keys = manifest_keys;
+
// A limit to stop us passing dangerously large canvases to the browser.
const int kMaxImageCanvas = 4096 * 4096;
@@ -85,8 +87,6 @@ bool PathContainsParentDirectory(const base::FilePath& path) {
} // namespace
-namespace extensions {
-
struct Unpacker::InternalData {
DecodedImages decoded_images;
};
diff --git a/chrome/utility/extensions/unpacker_unittest.cc b/chrome/utility/extensions/unpacker_unittest.cc
index b61a42c..eb74a17 100644
--- a/chrome/utility/extensions/unpacker_unittest.cc
+++ b/chrome/utility/extensions/unpacker_unittest.cc
@@ -10,19 +10,19 @@
#include "base/values.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/utility/extensions/unpacker.h"
#include "extensions/common/constants.h"
+#include "extensions/common/manifest_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
-namespace errors = extension_manifest_errors;
-namespace keys = extensions::manifest_keys;
-
namespace extensions {
+namespace errors = manifest_errors;
+namespace keys = manifest_keys;
+
class UnpackerTest : public testing::Test {
-public:
+ public:
virtual ~UnpackerTest() {
LOG(WARNING) << "Deleting temp dir: "
<< temp_dir_.path().LossyDisplayName();