| Index: apps/app_lifetime_monitor.cc
|
| diff --git a/apps/app_lifetime_monitor.cc b/apps/app_lifetime_monitor.cc
|
| index 0d258c6a76ad3c178e1832d2671da487a6644417..84b6c826d3a8a32142e2bb68f1cd051982dca25a 100644
|
| --- a/apps/app_lifetime_monitor.cc
|
| +++ b/apps/app_lifetime_monitor.cc
|
| @@ -10,6 +10,7 @@
|
| #include "content/public/browser/notification_details.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "extensions/browser/extension_host.h"
|
| +#include "extensions/browser/notification_types.h"
|
| #include "extensions/common/extension.h"
|
|
|
| namespace apps {
|
| @@ -19,12 +20,12 @@ using extensions::ExtensionHost;
|
|
|
| AppLifetimeMonitor::AppLifetimeMonitor(Profile* profile)
|
| : profile_(profile) {
|
| - registrar_.Add(
|
| - this, chrome::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING,
|
| - content::NotificationService::AllSources());
|
| - registrar_.Add(
|
| - this, chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED,
|
| - content::NotificationService::AllSources());
|
| + registrar_.Add(this,
|
| + extensions::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING,
|
| + content::NotificationService::AllSources());
|
| + registrar_.Add(this,
|
| + extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED,
|
| + content::NotificationService::AllSources());
|
| registrar_.Add(
|
| this, chrome::NOTIFICATION_APP_TERMINATING,
|
| content::NotificationService::AllSources());
|
| @@ -50,7 +51,7 @@ void AppLifetimeMonitor::Observe(int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| switch (type) {
|
| - case chrome::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING: {
|
| + case extensions::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING: {
|
| ExtensionHost* host = content::Details<ExtensionHost>(details).ptr();
|
| const Extension* extension = host->extension();
|
| if (!extension || !extension->is_platform_app())
|
| @@ -60,7 +61,7 @@ void AppLifetimeMonitor::Observe(int type,
|
| break;
|
| }
|
|
|
| - case chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED: {
|
| + case extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED: {
|
| ExtensionHost* host = content::Details<ExtensionHost>(details).ptr();
|
| const Extension* extension = host->extension();
|
| if (!extension || !extension->is_platform_app())
|
|
|