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

Unified Diff: content/common/notification_registrar.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/common/notification_registrar.h ('k') | content/common/notification_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/notification_registrar.cc
===================================================================
--- content/common/notification_registrar.cc (revision 91968)
+++ content/common/notification_registrar.cc (working copy)
@@ -25,7 +25,7 @@
bool operator==(const Record& other) const;
NotificationObserver* observer;
- NotificationType type;
+ int type;
NotificationSource source;
base::PlatformThreadId thread_id;
};
@@ -51,7 +51,7 @@
}
void NotificationRegistrar::Add(NotificationObserver* observer,
- NotificationType type,
+ int type,
const NotificationSource& source) {
DCHECK(!IsRegistered(observer, type, source)) << "Duplicate registration.";
@@ -62,11 +62,11 @@
}
void NotificationRegistrar::Remove(NotificationObserver* observer,
- NotificationType type,
+ int type,
const NotificationSource& source) {
if (!IsRegistered(observer, type, source)) {
NOTREACHED() << "Trying to remove unregistered observer of type " <<
- type.value << " from list of size " << registered_.size() << ".";
+ type << " from list of size " << registered_.size() << ".";
return;
}
@@ -113,7 +113,7 @@
}
bool NotificationRegistrar::IsRegistered(NotificationObserver* observer,
- NotificationType type,
+ int type,
const NotificationSource& source) {
Record record = { observer, type, source };
return std::find(registered_.begin(), registered_.end(), record) !=
« no previous file with comments | « content/common/notification_registrar.h ('k') | content/common/notification_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698