diff options
Diffstat (limited to 'chrome/browser/extensions/extension_creator.cc')
-rwxr-xr-x | chrome/browser/extensions/extension_creator.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc index 8c38e17..9abd030 100755 --- a/chrome/browser/extensions/extension_creator.cc +++ b/chrome/browser/extensions/extension_creator.cc @@ -12,6 +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/common/extensions/extension.h" #include "chrome/common/zip.h" #include "net/base/base64.h" @@ -20,8 +21,6 @@ namespace { const int kRSAKeySize = 1024; }; -const char ExtensionCreator::kExtensionHeaderMagic[] = "Cr24"; - bool ExtensionCreator::InitializeInput( const FilePath& extension_dir, const FilePath& private_key_path, @@ -167,14 +166,14 @@ bool ExtensionCreator::WriteCRX(const FilePath& zip_path, return false; } - ExtensionCreator::ExtensionHeader header; - memcpy(&header.magic, ExtensionCreator::kExtensionHeaderMagic, - ExtensionCreator::kExtensionHeaderMagicSize); - header.version = kCurrentVersion; + ExtensionsService::ExtensionHeader header; + memcpy(&header.magic, ExtensionsService::kExtensionHeaderMagic, + ExtensionsService::kExtensionHeaderMagicSize); + header.version = ExtensionsService::kCurrentVersion; header.key_size = public_key.size(); header.signature_size = signature.size(); - fwrite(&header, sizeof(ExtensionCreator::ExtensionHeader), 1, + fwrite(&header, sizeof(ExtensionsService::ExtensionHeader), 1, crx_handle.get()); fwrite(&public_key.front(), sizeof(uint8), public_key.size(), crx_handle.get()); |