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

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

Issue 10702017: Revert r 144574 "Modify experimental identity flow to display scope descriptions and details." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 19e01dba7b8b63d237b2fd84d81476afcc6ccb58..176888080a6e9ea943a7af87f9e9cd241939848e 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -936,24 +936,6 @@ void ExtensionPrefs::AddGrantedPermissions(
extension_id, kPrefGrantedPermissions, new_perms.get());
}
-void ExtensionPrefs::RemoveGrantedPermissions(
- const std::string& extension_id,
- const PermissionSet* permissions) {
- CHECK(Extension::IdIsValid(extension_id));
-
- scoped_refptr<PermissionSet> granted_permissions(
- GetGrantedPermissions(extension_id));
-
- // The new granted permissions are the difference of the already granted
- // permissions and the newly ungranted permissions.
- scoped_refptr<PermissionSet> new_perms(
- PermissionSet::CreateDifference(
- granted_permissions.get(), permissions));
-
- SetExtensionPrefPermissionSet(
- extension_id, kPrefGrantedPermissions, new_perms.get());
-}
-
PermissionSet* ExtensionPrefs::GetActivePermissions(
const std::string& extension_id) {
CHECK(Extension::IdIsValid(extension_id));
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698