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

Unified Diff: chrome/browser/apps/ephemeral_app_browsertest.cc

Issue 1164603003: Remove ExtensionPrefs::SetDidExtensionEscalatePermissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sync_permission_approval
Patch Set: review Created 5 years, 6 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 | « no previous file | chrome/browser/apps/ephemeral_app_launcher_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/ephemeral_app_browsertest.cc
diff --git a/chrome/browser/apps/ephemeral_app_browsertest.cc b/chrome/browser/apps/ephemeral_app_browsertest.cc
index 07e01b5707ead07dd7a2818a0b4d980f5738c390..de35c13fde5b5ce6a4e49522908a1b42eb8b866c 100644
--- a/chrome/browser/apps/ephemeral_app_browsertest.cc
+++ b/chrome/browser/apps/ephemeral_app_browsertest.cc
@@ -293,13 +293,6 @@ void EphemeralAppTestBase::PromoteEphemeralApp(
void EphemeralAppTestBase::DisableEphemeralApp(
const Extension* app,
Extension::DisableReason disable_reason) {
- ExtensionPrefs* prefs = ExtensionPrefs::Get(profile());
-
- // Disabling due to a permissions increase also involves setting the
- // DidExtensionEscalatePermissions flag.
- if (disable_reason == Extension::DISABLE_PERMISSIONS_INCREASE)
- prefs->SetDidExtensionEscalatePermissions(app, true);
-
ExtensionSystem::Get(profile())->extension_service()->DisableExtension(
app->id(), disable_reason);
« no previous file with comments | « no previous file | chrome/browser/apps/ephemeral_app_launcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698