Index: chrome/browser/extensions/api/idle/idle_manager.cc |
diff --git a/chrome/browser/extensions/api/idle/idle_manager.cc b/chrome/browser/extensions/api/idle/idle_manager.cc |
index e0651cb48a003a5aa8f5f4c208e33d8ed18b90fa..450270dc1fc693ff390df95b8b55c73b1968b4bc 100644 |
--- a/chrome/browser/extensions/api/idle/idle_manager.cc |
+++ b/chrome/browser/extensions/api/idle/idle_manager.cc |
@@ -134,7 +134,7 @@ IdleManager::~IdleManager() { |
} |
void IdleManager::Init() { |
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, |
+ registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, |
content::Source<Profile>(profile_->GetOriginalProfile())); |
event_delegate_->RegisterObserver(this); |
} |
@@ -149,7 +149,7 @@ void IdleManager::Observe(int type, |
const content::NotificationDetails& details) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
- if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED) { |
+ if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) { |
const Extension* extension = |
content::Details<extensions::UnloadedExtensionInfo>(details)->extension; |
monitors_.erase(extension->id()); |