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

Unified Diff: Source/modules/notifications/Notification.h

Issue 268353004: NotificationController::clientFrom() should return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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: Source/modules/notifications/Notification.h
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h
index 774784f11e4d3f0b7d22ad05ce4be9799ab772e2..6fe35ba1e2d6b01f17483860fc08b8baf72f4165 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -95,7 +95,7 @@ public:
void trace(Visitor*) { }
private:
- Notification(const String& title, ExecutionContext*, NotificationClient*);
+ Notification(const String& title, ExecutionContext*, NotificationClient&);
// Calling show() may start asynchronous operation. If this object has
// a V8 wrapper, hasPendingActivity() prevents the wrapper from being
@@ -127,7 +127,7 @@ private:
NotificationState m_state;
- NotificationClient* m_client;
+ NotificationClient& m_client;
OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner;
};
« no previous file with comments | « no previous file | Source/modules/notifications/Notification.cpp » ('j') | Source/modules/notifications/Notification.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698