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

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

Issue 10968064: Move the NOTIFICATION_APP_TERMINATING notification from content to chrome, since it's fired by chro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: cros compile Created 8 years, 3 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 | « chrome/browser/lifetime/application_lifetime.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_ui_manager_impl.cc
===================================================================
--- chrome/browser/notifications/notification_ui_manager_impl.cc (revision 158279)
+++ chrome/browser/notifications/notification_ui_manager_impl.cc (working copy)
@@ -49,7 +49,7 @@
NotificationUIManagerImpl::NotificationUIManagerImpl(PrefService* local_state)
: balloon_collection_(NULL),
is_user_active_(true) {
- registrar_.Add(this, content::NOTIFICATION_APP_TERMINATING,
+ registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING,
content::NotificationService::AllSources());
position_pref_.Init(prefs::kDesktopNotificationPosition, local_state, this);
#if defined(OS_MACOSX)
@@ -231,7 +231,7 @@
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- if (type == content::NOTIFICATION_APP_TERMINATING) {
+ if (type == chrome::NOTIFICATION_APP_TERMINATING) {
CancelAll();
} else if (type == chrome::NOTIFICATION_PREF_CHANGED) {
std::string* name = content::Details<std::string>(details).ptr();
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698