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

Unified Diff: content/renderer/notification_permission_dispatcher.cc

Issue 1197853005: Collecting statistics on iframe permissions use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed NOTREACHED calls. Created 5 years, 5 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 90eef27cf7787f650bbbe87a4e7910ba8acad42a..d0c1617edb7b0343e11875466f1b1b5b7a230b17 100644
--- a/content/renderer/notification_permission_dispatcher.cc
+++ b/content/renderer/notification_permission_dispatcher.cc
@@ -58,6 +58,8 @@ void NotificationPermissionDispatcher::OnPermissionRequestComplete(
case PERMISSION_STATUS_ASK:
permission = blink::WebNotificationPermissionDefault;
break;
+ case PERMISSION_STATUS_NUM:
+ return;
}
callback->permissionRequestComplete(permission);

Powered by Google App Engine
This is Rietveld 408576698