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

Unified Diff: chrome/browser/extensions/extension_app_api.cc

Issue 8382010: Some fixups for app notifications: (Closed) Base URL: svn://svn.chromium.org/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
Index: chrome/browser/extensions/extension_app_api.cc
===================================================================
--- chrome/browser/extensions/extension_app_api.cc (revision 106777)
+++ chrome/browser/extensions/extension_app_api.cc (working copy)
@@ -72,11 +72,6 @@
manager->Add(item.release());
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED,
- content::Source<Profile>(profile_),
- content::Details<const std::string>(&id));
-
return true;
}
@@ -94,9 +89,5 @@
AppNotificationManager* manager =
profile()->GetExtensionService()->app_notification_manager();
manager->ClearAll(id);
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED,
- content::Source<Profile>(profile_),
- content::Details<const std::string>(&id));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698