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

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

Issue 1006453002: Extensions: Prepare switch to new permission message system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | 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 e8dea3cb7cf2ba5aec8c52b23222dc8f894f0c09..670d23e377917f74199251caaa445ef9f5b25f30 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -928,21 +928,23 @@ void ExtensionInstallPrompt::ShowConfirmation() {
extension_ ? extension_->GetType() : Manifest::TYPE_UNKNOWN;
const extensions::PermissionMessageProvider* message_provider =
extensions::PermissionMessageProvider::Get();
- prompt_->SetPermissions(message_provider->GetWarningMessages(
+ prompt_->SetPermissions(message_provider->GetLegacyWarningMessages(
permissions_to_display.get(), type),
REGULAR_PERMISSIONS);
- prompt_->SetPermissionsDetails(message_provider->GetWarningMessagesDetails(
- permissions_to_display.get(), type),
- REGULAR_PERMISSIONS);
+ prompt_->SetPermissionsDetails(
+ message_provider->GetLegacyWarningMessagesDetails(
+ permissions_to_display.get(), type),
+ REGULAR_PERMISSIONS);
scoped_refptr<const extensions::PermissionSet> withheld =
extension_->permissions_data()->withheld_permissions();
if (!withheld->IsEmpty()) {
prompt_->SetPermissions(
- message_provider->GetWarningMessages(withheld.get(), type),
+ message_provider->GetLegacyWarningMessages(withheld.get(), type),
PermissionsType::WITHHELD_PERMISSIONS);
prompt_->SetPermissionsDetails(
- message_provider->GetWarningMessagesDetails(withheld.get(), type),
+ message_provider->GetLegacyWarningMessagesDetails(withheld.get(),
+ type),
PermissionsType::WITHHELD_PERMISSIONS);
}
}
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698