X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fapps%2Fapp_lifetime_monitor.cc;h=84b6c826d3a8a32142e2bb68f1cd051982dca25a;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=0d258c6a76ad3c178e1832d2671da487a6644417;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/apps/app_lifetime_monitor.cc b/src/apps/app_lifetime_monitor.cc index 0d258c6..84b6c82 100644 --- a/src/apps/app_lifetime_monitor.cc +++ b/src/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(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(details).ptr(); const Extension* extension = host->extension(); if (!extension || !extension->is_platform_app())