Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: chrome/browser/extensions/extension_install_prompt.cc

Issue 10823243: Fix crash in bundle install dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_install_prompt.cc
diff --git a/chrome/browser/extensions/extension_install_prompt.cc b/chrome/browser/extensions/extension_install_prompt.cc
index a47f415a89063479b56152954ce5776fbff1f13d..cfbcd5e0bbb1bb50e41cf38af8f02a17fd0aebe3 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -470,8 +470,9 @@ void ExtensionInstallPrompt::ShowConfirmation() {
prompt_.set_type(prompt_type_);
if (permissions_) {
- prompt_.SetPermissions(
- permissions_->GetWarningMessages(extension_->GetType()));
+ Extension::Type extension_type = prompt_type_ == BUNDLE_INSTALL_PROMPT ?
+ Extension::TYPE_UNKNOWN : extension_->GetType();
+ prompt_.SetPermissions(permissions_->GetWarningMessages(extension_type));
}
switch (prompt_type_) {
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698