Index: chrome/renderer/content_settings_observer.h |
diff --git a/chrome/renderer/content_settings_observer.h b/chrome/renderer/content_settings_observer.h |
index ba7296116ecede199031f9dd723209818b7ddba5..f9a04d2ed8ffd21f9ffdc78478f3c900a5332839 100644 |
--- a/chrome/renderer/content_settings_observer.h |
+++ b/chrome/renderer/content_settings_observer.h |
@@ -12,7 +12,6 @@ |
#include "components/content_settings/core/common/content_settings_types.h" |
#include "content/public/renderer/render_frame_observer.h" |
#include "content/public/renderer/render_frame_observer_tracker.h" |
-#include "extensions/common/permissions/api_permission.h" |
#include "third_party/WebKit/public/web/WebPermissionClient.h" |
class GURL; |
@@ -104,10 +103,12 @@ class ContentSettingsObserver |
// Resets the |content_blocked_| array. |
void ClearBlockedContentSettings(); |
+#if defined(ENABLE_EXTENSIONS) |
// If |origin| corresponds to an installed extension, returns that extension. |
// Otherwise returns NULL. |
const extensions::Extension* GetExtension( |
const blink::WebSecurityOrigin& origin) const; |
+#endif |
// Helpers. |
// True if |frame| contains content that is white-listed for content settings. |
@@ -116,8 +117,10 @@ class ContentSettingsObserver |
const blink::WebSecurityOrigin& origin, |
const GURL& document_url); |
+#if defined(ENABLE_EXTENSIONS) |
// Owned by ChromeContentRendererClient and outlive us. |
extensions::Dispatcher* extension_dispatcher_; |
+#endif |
// Insecure content may be permitted for the duration of this render view. |
bool allow_displaying_insecure_content_; |