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

Unified Diff: chrome/browser/desktop_notification_handler.cc

Issue 7053041: Add a Create method to DesktopNotificationHandler and stubs for the notification objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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: chrome/browser/desktop_notification_handler.cc
diff --git a/chrome/browser/desktop_notification_handler.cc b/chrome/browser/desktop_notification_handler.cc
index da6f2e83de40b79be00f1b2c9c767e983561a06b..6c2702929e6d8868381df9f5b093b92cfcdc2524 100644
--- a/chrome/browser/desktop_notification_handler.cc
+++ b/chrome/browser/desktop_notification_handler.cc
@@ -13,14 +13,20 @@
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/common/desktop_notification_messages.h"
-DesktopNotificationHandler::DesktopNotificationHandler(
- RenderViewHost* render_view_host)
- : RenderViewHostObserver(render_view_host) {
+// static
+DesktopNotificationHandler*
+DesktopNotificationHandler::Create(RenderViewHost* render_view_host) {
+ return new DesktopNotificationHandler(render_view_host);
}
DesktopNotificationHandler::~DesktopNotificationHandler() {
}
+DesktopNotificationHandler::DesktopNotificationHandler(
+ RenderViewHost* render_view_host)
+ : RenderViewHostObserver(render_view_host) {
+}
+
bool DesktopNotificationHandler::OnMessageReceived(
const IPC::Message& message) {
bool handled = true;

Powered by Google App Engine
This is Rietveld 408576698