| Index: chrome/browser/automation/automation_extension_tracker.cc
|
| diff --git a/chrome/browser/automation/automation_extension_tracker.cc b/chrome/browser/automation/automation_extension_tracker.cc
|
| index 9c75c7ab8a089c3ee4f709dd71ef7f6090de5e90..6ba03abc4eb764764990642ba1975a4f3dbd88ce 100644
|
| --- a/chrome/browser/automation/automation_extension_tracker.cc
|
| +++ b/chrome/browser/automation/automation_extension_tracker.cc
|
| @@ -7,6 +7,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/extensions/extension.h"
|
| +#include "chrome/common/extensions/extension_constants.h"
|
| #include "content/common/notification_service.h"
|
|
|
| AutomationExtensionTracker::AutomationExtensionTracker(
|
| @@ -35,7 +36,7 @@ void AutomationExtensionTracker::Observe(int type,
|
| Profile* profile = Source<Profile>(source).ptr();
|
| if (profile) {
|
| ExtensionService* service = profile->GetExtensionService();
|
| - if (service && info->reason == UnloadedExtensionInfo::UNINSTALL) {
|
| + if (service && info->reason == extension_misc::UNLOAD_REASON_UNINSTALL) {
|
| // Remove this extension only if it is uninstalled, not just disabled.
|
| CloseResource(extension);
|
| }
|
|
|