diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-10 21:26:32 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-10 21:26:32 +0000 |
commit | a3b8c532a83a41f3a21907973b54570989afcde9 (patch) | |
tree | 878f40c8c352e045478fb6af8783e4c90e75ade3 /chrome/browser/browser_init.cc | |
parent | 8e53730a2199f914cbd79cf72c363ad33aea0802 (diff) | |
download | chromium_src-a3b8c532a83a41f3a21907973b54570989afcde9.zip chromium_src-a3b8c532a83a41f3a21907973b54570989afcde9.tar.gz chromium_src-a3b8c532a83a41f3a21907973b54570989afcde9.tar.bz2 |
Remove the prepended manifest from the crx format. Now we just have the header, the public key, the signature, and the zip.
Review URL: http://codereview.chromium.org/118490
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index a65c79e..f2b6d95 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -724,8 +724,25 @@ bool BrowserInit::ProcessCmdLineImpl(const CommandLine& command_line, // implementations. #if defined(OS_WIN) scoped_ptr<ExtensionCreator> creator(new ExtensionCreator()); - if (!creator->Run(src_dir, crx_path, private_key_path, + if (creator->Run(src_dir, crx_path, private_key_path, output_private_key_path)) { + std::wstring message; + if (private_key_path.value().empty()) { + message = StringPrintf( + L"Created the following files:\n\n" + L"Extension: %ls\n" + L"Key File: %ls\n\n" + L"Keep your key file in a safe place. You will need it to create " + L"new versions of your extension.", + crx_path.ToWStringHack().c_str(), + output_private_key_path.ToWStringHack().c_str()); + } else { + message = StringPrintf(L"Created the extension:\n\n%ls", + crx_path.ToWStringHack().c_str()); + } + win_util::MessageBox(NULL, message, L"Extension Packaging Success", + MB_OK | MB_SETFOREGROUND); + } else { win_util::MessageBox(NULL, UTF8ToWide(creator->error_message()), L"Extension Packaging Error", MB_OK | MB_SETFOREGROUND); return false; |