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

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

Issue 855513002: Add/resurrect support for bundles of WebStore items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testext_bundle
Patch Set: remove icon_data Created 5 years, 9 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
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 670d23e377917f74199251caaa445ef9f5b25f30..ee181e0b1b6fa4e597236000433050a56eafc8b2 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -937,8 +937,9 @@ void ExtensionInstallPrompt::ShowConfirmation() {
REGULAR_PERMISSIONS);
scoped_refptr<const extensions::PermissionSet> withheld =
- extension_->permissions_data()->withheld_permissions();
- if (!withheld->IsEmpty()) {
+ extension_ ? extension_->permissions_data()->withheld_permissions()
+ : nullptr;
+ if (withheld && !withheld->IsEmpty()) {
prompt_->SetPermissions(
message_provider->GetLegacyWarningMessages(withheld.get(), type),
PermissionsType::WITHHELD_PERMISSIONS);

Powered by Google App Engine
This is Rietveld 408576698