Index: Source/modules/notifications/NotificationController.cpp |
diff --git a/Source/modules/notifications/NotificationController.cpp b/Source/modules/notifications/NotificationController.cpp |
index 47abc467407a14ebba2d83382611c3825a46e899..5f4796ff7fd9af4c73c3b3a9029d7acc4c5f8b63 100644 |
--- a/Source/modules/notifications/NotificationController.cpp |
+++ b/Source/modules/notifications/NotificationController.cpp |
@@ -45,11 +45,11 @@ PassOwnPtr<NotificationController> NotificationController::create(PassOwnPtr<Not |
return adoptPtr(new NotificationController(client)); |
} |
-NotificationClient* NotificationController::clientFrom(LocalFrame* frame) |
+NotificationClient& NotificationController::clientFrom(LocalFrame* frame) |
{ |
- if (NotificationController* controller = NotificationController::from(frame)) |
- return controller->client(); |
- return 0; |
+ NotificationController* controller = NotificationController::from(frame); |
+ ASSERT(controller); |
+ return controller->client(); |
} |
const char* NotificationController::supplementName() |