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

Unified Diff: content/public/browser/notification_registrar.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « content/public/browser/DEPS ('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/public/browser/notification_registrar.cc
===================================================================
--- content/public/browser/notification_registrar.cc (revision 106380)
+++ content/public/browser/notification_registrar.cc (working copy)
@@ -8,7 +8,7 @@
#include "base/logging.h"
#include "base/threading/platform_thread.h"
-#include "content/common/notification_service.h"
+#include "content/browser/notification_service_impl.h"
namespace {
@@ -45,7 +45,7 @@
// AtExitManager before any objects which access it via NotificationRegistrar.
// This in turn means it will be destroyed after these objects, so they will
// never try to access the NotificationService after it's been destroyed.
- NotificationService::current();
+ NotificationServiceImpl::current();
}
NotificationRegistrar::~NotificationRegistrar() {
@@ -60,7 +60,7 @@
Record record = { observer, type, source, base::PlatformThread::CurrentId() };
registered_.push_back(record);
- NotificationService::current()->AddObserver(observer, type, source);
+ NotificationServiceImpl::current()->AddObserver(observer, type, source);
}
void NotificationRegistrar::Remove(NotificationObserver* observer,
@@ -80,7 +80,7 @@
// This can be NULL if our owner outlives the NotificationService, e.g. if our
// owner is a Singleton.
- NotificationService* service = NotificationService::current();
+ NotificationServiceImpl* service = NotificationServiceImpl::current();
if (service)
service->RemoveObserver(observer, type, source);
}
@@ -98,7 +98,7 @@
// This can be NULL if our owner outlives the NotificationService, e.g. if our
// owner is a Singleton.
- NotificationService* service = NotificationService::current();
+ NotificationServiceImpl* service = NotificationServiceImpl::current();
if (service) {
for (size_t i = 0; i < registered_.size(); i++) {
CheckCalledOnValidThread(registered_[i].thread_id);
« no previous file with comments | « content/public/browser/DEPS ('k') | content/public/browser/notification_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698