Index: chrome/browser/notifications/notification_exceptions_table_model.cc |
diff --git a/chrome/browser/notifications/notification_exceptions_table_model.cc b/chrome/browser/notifications/notification_exceptions_table_model.cc |
index e4fd3ed97d98814d056c7b7d05aff5d2cd4dc8b0..71ff312f7bf6c1779ee2b0571475282327c8de49 100644 |
--- a/chrome/browser/notifications/notification_exceptions_table_model.cc |
+++ b/chrome/browser/notifications/notification_exceptions_table_model.cc |
@@ -30,7 +30,7 @@ NotificationExceptionsTableModel::NotificationExceptionsTableModel( |
observer_(NULL) { |
registrar_.Add(this, |
chrome::NOTIFICATION_DESKTOP_NOTIFICATION_SETTINGS_CHANGED, |
- NotificationService::AllSources()); |
+ Source<DesktopNotificationService>(service)); |
LoadEntries(); |
} |
@@ -103,7 +103,8 @@ void NotificationExceptionsTableModel::Observe( |
const NotificationSource& source, |
const NotificationDetails& details) { |
if (!updates_disabled_) { |
- DCHECK(type == chrome::NOTIFICATION_DESKTOP_NOTIFICATION_SETTINGS_CHANGED); |
+ DCHECK_EQ(type, chrome::NOTIFICATION_DESKTOP_NOTIFICATION_SETTINGS_CHANGED); |
+ DCHECK_EQ(Source<DesktopNotificationService>(source).ptr(), service_); |
entries_.clear(); |
LoadEntries(); |