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

Unified Diff: chrome/browser/extensions/api/management/management_api.cc

Issue 242613004: Replace NOTIFICATION_EXTENSION_LOADED to NOTIFICATION_EXTENSION_LOADED_DEPRECATED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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/api/management/management_api.cc
diff --git a/chrome/browser/extensions/api/management/management_api.cc b/chrome/browser/extensions/api/management/management_api.cc
index e34ba8e344114289361c714ffecfd624617bd3b2..851844bb993f073e7d5dd2cbb2c070ee74d08780 100644
--- a/chrome/browser/extensions/api/management/management_api.cc
+++ b/chrome/browser/extensions/api/management/management_api.cc
@@ -648,12 +648,10 @@ bool ManagementUninstallSelfFunction::RunImpl() {
ManagementEventRouter::ManagementEventRouter(Profile* profile)
: profile_(profile) {
- int types[] = {
- chrome::NOTIFICATION_EXTENSION_INSTALLED,
- chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
- chrome::NOTIFICATION_EXTENSION_LOADED,
- chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED
- };
+ int types[] = {chrome::NOTIFICATION_EXTENSION_INSTALLED,
+ chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
+ chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
+ chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED};
CHECK(registrar_.IsEmpty());
for (size_t i = 0; i < arraysize(types); i++) {
@@ -685,7 +683,7 @@ void ManagementEventRouter::Observe(
event_name = management::OnUninstalled::kEventName;
extension = content::Details<const Extension>(details).ptr();
break;
- case chrome::NOTIFICATION_EXTENSION_LOADED:
+ case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED:
event_name = management::OnEnabled::kEventName;
extension = content::Details<const Extension>(details).ptr();
break;
« no previous file with comments | « chrome/browser/extensions/api/location/location_manager.cc ('k') | chrome/browser/extensions/api/omnibox/omnibox_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698