diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 00:47:53 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 00:47:53 +0000 |
commit | af1277b79f621b307fbcff76768cd7a225841e9e (patch) | |
tree | 8cbe5589ac40b88021b81acc79fd8ba87285c236 /chrome/browser/extensions/extension_creator.cc | |
parent | 42ac182f04f9c950e867491d0b233dbeecfe56f0 (diff) | |
download | chromium_src-af1277b79f621b307fbcff76768cd7a225841e9e.zip chromium_src-af1277b79f621b307fbcff76768cd7a225841e9e.tar.gz chromium_src-af1277b79f621b307fbcff76768cd7a225841e9e.tar.bz2 |
Pull a SandboxedExtensionUnpacker out of ExtensionsService.
Review URL: http://codereview.chromium.org/160145
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_creator.cc')
-rw-r--r-- | chrome/browser/extensions/extension_creator.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc index 9abd030..7b7c389 100644 --- a/chrome/browser/extensions/extension_creator.cc +++ b/chrome/browser/extensions/extension_creator.cc @@ -12,7 +12,7 @@ #include "base/file_util.h" #include "base/scoped_handle.h" #include "base/string_util.h" -#include "chrome/browser/extensions/extensions_service.h" +#include "chrome/browser/extensions/sandboxed_extension_unpacker.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/zip.h" #include "net/base/base64.h" @@ -166,14 +166,14 @@ bool ExtensionCreator::WriteCRX(const FilePath& zip_path, return false; } - ExtensionsService::ExtensionHeader header; - memcpy(&header.magic, ExtensionsService::kExtensionHeaderMagic, - ExtensionsService::kExtensionHeaderMagicSize); - header.version = ExtensionsService::kCurrentVersion; + SandboxedExtensionUnpacker::ExtensionHeader header; + memcpy(&header.magic, SandboxedExtensionUnpacker::kExtensionHeaderMagic, + SandboxedExtensionUnpacker::kExtensionHeaderMagicSize); + header.version = SandboxedExtensionUnpacker::kCurrentVersion; header.key_size = public_key.size(); header.signature_size = signature.size(); - fwrite(&header, sizeof(ExtensionsService::ExtensionHeader), 1, + fwrite(&header, sizeof(SandboxedExtensionUnpacker::ExtensionHeader), 1, crx_handle.get()); fwrite(&public_key.front(), sizeof(uint8), public_key.size(), crx_handle.get()); |