| Index: chrome/browser/performance_monitor/performance_monitor.cc
|
| diff --git a/chrome/browser/performance_monitor/performance_monitor.cc b/chrome/browser/performance_monitor/performance_monitor.cc
|
| index f72b845c2277c69f6dfe1c6d9a8d1b9fa2786ccb..1dc88f93f87c1d16efa4291f0b192313bf03fe03 100644
|
| --- a/chrome/browser/performance_monitor/performance_monitor.cc
|
| +++ b/chrome/browser/performance_monitor/performance_monitor.cc
|
| @@ -69,6 +69,8 @@ void PerformanceMonitor::RegisterForNotifications() {
|
| content::NotificationService::AllSources());
|
| registrar_.Add(this, chrome::NOTIFICATION_CRX_INSTALLER_DONE,
|
| content::NotificationService::AllSources());
|
| + registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
|
| + content::NotificationService::AllSources());
|
| }
|
|
|
| // Static
|
| @@ -186,7 +188,7 @@ void PerformanceMonitor::Observe(int type,
|
| }
|
| case chrome::NOTIFICATION_CRX_INSTALLER_DONE: {
|
| const CrxInstaller* installer =
|
| - content::Source<CrxInstaller>(source).ptr();
|
| + content::Source<CrxInstaller>(source).ptr();
|
|
|
| // Check if the reason for the install was due to an extension update.
|
| if (installer->install_cause() != extension_misc::INSTALL_CAUSE_UPDATE)
|
| @@ -202,6 +204,17 @@ void PerformanceMonitor::Observe(int type,
|
| extension->description()));
|
| break;
|
| }
|
| + case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: {
|
| + const Extension* extension = content::Details<Extension>(details).ptr();
|
| + AddEvent(util::CreateExtensionUninstallEvent(base::Time::Now(),
|
| + extension->id(),
|
| + extension->name(),
|
| + extension->url().spec(),
|
| + extension->location(),
|
| + extension->VersionString(),
|
| + extension->description()));
|
| + break;
|
| + }
|
| default: {
|
| NOTREACHED();
|
| break;
|
|
|