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

Unified Diff: content/browser/notification_service_impl.cc

Issue 8913009: Hide the process of instantiating NotificationServiceImpl from embedders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « chrome/browser/webdata/web_database.cc ('k') | content/public/browser/notification_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/notification_service_impl.cc
diff --git a/content/browser/notification_service_impl.cc b/content/browser/notification_service_impl.cc
index 221a883477277636954df7e550eb361305a83775..327e28fba5df2a221043966238832576ccb0d4d2 100644
--- a/content/browser/notification_service_impl.cc
+++ b/content/browser/notification_service_impl.cc
@@ -23,6 +23,11 @@ content::NotificationService* content::NotificationService::current() {
}
// static
+content::NotificationService* content::NotificationService::Create() {
+ return new NotificationServiceImpl;
+}
+
+// static
bool NotificationServiceImpl::HasKey(const NotificationSourceMap& map,
const content::NotificationSource& source) {
return map.find(source.map_key()) != map.end();
« no previous file with comments | « chrome/browser/webdata/web_database.cc ('k') | content/public/browser/notification_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698