From a3b8c532a83a41f3a21907973b54570989afcde9 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Wed, 10 Jun 2009 21:26:32 +0000 Subject: 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 --- chrome/browser/browser_init.cc | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'chrome/browser/browser_init.cc') 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 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; -- cgit v1.1