Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 2b2296228b8d7094a36622a9306a02ffb97b78fd..bbef3eb858e9f126276d807b60f3e93917ccf265 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1803,10 +1803,11 @@ void ChromeContentBrowserClient::RequestDesktopNotificationPermission( |
// permission, the user will still be prompted.) |
Profile* profile = Profile::FromBrowserContext( |
render_frame_host->GetSiteInstance()->GetBrowserContext()); |
- InfoMap* extension_info_map = |
- extensions::ExtensionSystem::Get(profile)->info_map(); |
DesktopNotificationService* notification_service = |
DesktopNotificationServiceFactory::GetForProfile(profile); |
+#if defined(ENABLE_EXTENSIONS) |
+ InfoMap* extension_info_map = |
+ extensions::ExtensionSystem::Get(profile)->info_map(); |
const Extension* extension = NULL; |
if (extension_info_map) { |
extensions::ExtensionSet extensions; |
@@ -1831,6 +1832,7 @@ void ChromeContentBrowserClient::RequestDesktopNotificationPermission( |
callback.Run(blink::WebNotificationPermissionAllowed); |
return; |
} |
+#endif |
WebContents* web_contents = WebContents::FromRenderFrameHost( |
render_frame_host); |