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

Unified Diff: chrome/browser/notifications/notification_exceptions_table_model.cc

Issue 7548022: Profiles: Introduce AllProfilesAndSources(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avi fixes 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 | « no previous file | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698