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

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

Issue 2715643002: Replace all enums with enum classes in permissions code. (Closed)
Patch Set: Rebase 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
Index: chrome/browser/permissions/permission_infobar_delegate.cc
diff --git a/chrome/browser/permissions/permission_infobar_delegate.cc b/chrome/browser/permissions/permission_infobar_delegate.cc
index 95f748a2e0845ff4806ce52d50efe8303fd19a88..d217feb87181aa73a7127ab593ac1cc7e5a75b49 100644
--- a/chrome/browser/permissions/permission_infobar_delegate.cc
+++ b/chrome/browser/permissions/permission_infobar_delegate.cc
@@ -103,7 +103,7 @@ bool PermissionInfoBarDelegate::Accept() {
content_settings_type_, persist_);
}
- SetPermission(update_content_setting, GRANTED);
+ SetPermission(update_content_setting, PermissionAction::GRANTED);
return true;
}
@@ -115,12 +115,12 @@ bool PermissionInfoBarDelegate::Cancel() {
content_settings_type_, persist_);
}
- SetPermission(update_content_setting, DENIED);
+ SetPermission(update_content_setting, PermissionAction::DENIED);
return true;
}
void PermissionInfoBarDelegate::InfoBarDismissed() {
- SetPermission(false, DISMISSED);
+ SetPermission(false, PermissionAction::DISMISSED);
}
base::string16 PermissionInfoBarDelegate::GetButtonLabel(

Powered by Google App Engine
This is Rietveld 408576698