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

Unified Diff: content/child/permissions/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/child/permissions/permission_dispatcher.cc
diff --git a/content/child/permissions/permission_dispatcher.cc b/content/child/permissions/permission_dispatcher.cc
index eb5ac4538f0f9caf86adea7769ed9ab016e18e7b..f21a227e4f2d3bc760f7897b7781bceee158259e 100644
--- a/content/child/permissions/permission_dispatcher.cc
+++ b/content/child/permissions/permission_dispatcher.cc
@@ -56,6 +56,9 @@ blink::WebPermissionStatus GetWebPermissionStatus(PermissionStatus status) {
return blink::WebPermissionStatusDenied;
case PERMISSION_STATUS_ASK:
return blink::WebPermissionStatusPrompt;
+ case PERMISSION_STATUS_NUM:
+ // PERMISSION_STATUS_NUM should never be passed into this function.
jww 2015/07/07 21:14:23 It appears you didn't add a NOTREACHED into the sw
keenanb 2015/07/08 00:37:21 sort of done. (this function is local to this file
+ break;
}
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698