summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_unpacker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/extension_unpacker.cc')
-rw-r--r--chrome/common/extensions/extension_unpacker.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension_unpacker.cc b/chrome/common/extensions/extension_unpacker.cc
index 5194b4b..7915de1 100644
--- a/chrome/common/extensions/extension_unpacker.cc
+++ b/chrome/common/extensions/extension_unpacker.cc
@@ -190,10 +190,13 @@ bool ExtensionUnpacker::Run() {
return false;
}
- if (!extension_file_util::ValidateExtension(extension.get(), &error)) {
+ std::vector<std::string> warnings;
+ if (!extension_file_util::ValidateExtension(extension.get(),
+ &error, &warnings)) {
SetError(error);
return false;
}
+ extension->AddInstallWarnings(warnings);
// Decode any images that the browser needs to display.
std::set<FilePath> image_paths = extension->GetBrowserImages();