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

Unified Diff: chrome/browser/permissions/permission_util.cc

Issue 2707383004: Remove redundant GetPermissionType call in ~ScopedRevocationReporter (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_util.cc
diff --git a/chrome/browser/permissions/permission_util.cc b/chrome/browser/permissions/permission_util.cc
index 955b2f64cc96c63ed857d6b35d0f1e6ef2316256..a6a0e8482b8f619ee2160e1d1a2685b8e6138ee6 100644
--- a/chrome/browser/permissions/permission_util.cc
+++ b/chrome/browser/permissions/permission_util.cc
@@ -194,10 +194,7 @@ PermissionUtil::ScopedRevocationReporter::~ScopedRevocationReporter() {
ContentSetting final_content_setting = settings_map->GetContentSetting(
primary_url_, secondary_url_, content_type_, std::string());
if (final_content_setting != CONTENT_SETTING_ALLOW) {
- PermissionType permission_type;
- if (PermissionUtil::GetPermissionType(content_type_, &permission_type)) {
- PermissionUmaUtil::PermissionRevoked(content_type_, source_ui_,
- primary_url_, profile_);
- }
+ PermissionUmaUtil::PermissionRevoked(content_type_, source_ui_,
+ primary_url_, profile_);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698