Index: chrome/browser/extensions/extension_disabled_ui.cc |
diff --git a/chrome/browser/extensions/extension_disabled_ui.cc b/chrome/browser/extensions/extension_disabled_ui.cc |
index ece2144a677674b42c38b75b017a167c1bc1add8..b3f539f4fa2305cfb0a5dc27db4dc32efc0c78ee 100644 |
--- a/chrome/browser/extensions/extension_disabled_ui.cc |
+++ b/chrome/browser/extensions/extension_disabled_ui.cc |
@@ -31,6 +31,7 @@ |
#include "content/public/browser/notification_observer.h" |
#include "content/public/browser/notification_registrar.h" |
#include "content/public/browser/notification_source.h" |
+#include "extensions/browser/extension_util.h" |
#include "extensions/common/extension.h" |
#include "extensions/common/extension_icon_set.h" |
#include "extensions/common/manifest_handlers/icons_handler.h" |
@@ -354,7 +355,7 @@ void AddExtensionDisabledError(ExtensionService* service, |
const Extension* extension) { |
// Do not display notifications for ephemeral apps that have been disabled. |
// Instead, a prompt will be shown the next time the app is launched. |
- if (extension->is_ephemeral()) |
+ if (util::IsEphemeralApp(extension->id(), service->profile())) |
return; |
extensions::ExtensionResource image = extensions::IconsInfo::GetIconResource( |