Index: chrome/browser/extensions/extension_creator.cc |
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc |
index e344338297db7fc9c296e8a330f87a982b85ce45..cbcf078a5df5421d730bb363724d97e55edc89e6 100644 |
--- a/chrome/browser/extensions/extension_creator.cc |
+++ b/chrome/browser/extensions/extension_creator.cc |
@@ -228,7 +228,12 @@ bool ExtensionCreator::SignZip(const base::FilePath& zip_path, |
} |
zip_handle.Close(); |
- signature_creator->Final(signature); |
+ if (!signature_creator->Final(signature)) { |
+ error_message_ = |
+ l10n_util::GetStringUTF8(IDS_EXTENSION_ERROR_WHILE_SIGNING); |
+ return false; |
+ } |
+ |
return true; |
} |