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

Unified Diff: content/renderer/notification_permission_dispatcher.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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: content/renderer/notification_permission_dispatcher.cc
diff --git a/content/renderer/notification_permission_dispatcher.cc b/content/renderer/notification_permission_dispatcher.cc
index 9c2f767df3acb770d3ef15965e08f51d1a3fc558..cd71c03342f381e3b87b54a843074b53cca43f8b 100644
--- a/content/renderer/notification_permission_dispatcher.cc
+++ b/content/renderer/notification_permission_dispatcher.cc
@@ -37,7 +37,7 @@ void NotificationPermissionDispatcher::RequestPermission(
// base::Unretained is safe here because the Mojo channel, with associated
// callbacks, will be deleted before the "this" instance is deleted.
permission_service_->RequestPermission(
- PERMISSION_NAME_NOTIFICATIONS, origin.toString().utf8(),
+ PermissionName::NOTIFICATIONS, origin.toString().utf8(),
blink::WebUserGestureIndicator::isProcessingUserGesture(),
base::Bind(&NotificationPermissionDispatcher::OnPermissionRequestComplete,
base::Unretained(this),
@@ -52,13 +52,13 @@ void NotificationPermissionDispatcher::OnPermissionRequestComplete(
blink::WebNotificationPermission permission =
blink::WebNotificationPermissionDefault;
switch (status) {
- case PERMISSION_STATUS_GRANTED:
+ case PermissionStatus::GRANTED:
permission = blink::WebNotificationPermissionAllowed;
break;
- case PERMISSION_STATUS_DENIED:
+ case PermissionStatus::DENIED:
permission = blink::WebNotificationPermissionDenied;
break;
- case PERMISSION_STATUS_ASK:
+ case PermissionStatus::ASK:
permission = blink::WebNotificationPermissionDefault;
break;
}
« no previous file with comments | « content/renderer/mus/compositor_mus_connection.cc ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698