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

Unified Diff: chrome/browser/automation/automation_extension_tracker.cc

Issue 5968009: Change extension unload notification to indicate updates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/automation/automation_extension_tracker.cc
===================================================================
--- chrome/browser/automation/automation_extension_tracker.cc (revision 69996)
+++ chrome/browser/automation/automation_extension_tracker.cc (working copy)
@@ -13,8 +13,6 @@
: AutomationResourceTracker<const Extension*>(automation) {
registrar_.Add(this, NotificationType::EXTENSION_UNLOADED,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::EXTENSION_UNLOADED_DISABLED,
- NotificationService::AllSources());
}
AutomationExtensionTracker::~AutomationExtensionTracker() {
@@ -27,11 +25,11 @@
void AutomationExtensionTracker::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type != NotificationType::EXTENSION_UNLOADED &&
- type != NotificationType::EXTENSION_UNLOADED_DISABLED)
+ if (type != NotificationType::EXTENSION_UNLOADED)
Erik does not do reviews 2010/12/23 17:05:17 should this be NOTREACHED()?
asargent_no_longer_on_chrome 2010/12/23 18:53:04 Done.
return;
- const Extension* extension = Details<const Extension>(details).ptr();
+ const Extension* extension =
+ Details<UnloadedExtensionInfo>(details)->extension;
Erik does not do reviews 2010/12/23 17:05:17 extension can be NULL right? so it looks like a c
asargent_no_longer_on_chrome 2010/12/23 18:53:04 It turns out it can't. See my response to comments
Profile* profile = Source<Profile>(source).ptr();
if (profile) {
ExtensionService* service = profile->GetExtensionService();

Powered by Google App Engine
This is Rietveld 408576698