Index: chrome/browser/plugins/chrome_content_browser_client_plugins_part.cc |
diff --git a/chrome/browser/plugins/chrome_content_browser_client_plugins_part.cc b/chrome/browser/plugins/chrome_content_browser_client_plugins_part.cc |
index 853c8a77d679f8de8e1a6116bb851697b83a4bcc..5491372a2a477a732c3b19489124fdfa42ed9b75 100644 |
--- a/chrome/browser/plugins/chrome_content_browser_client_plugins_part.cc |
+++ b/chrome/browser/plugins/chrome_content_browser_client_plugins_part.cc |
@@ -66,8 +66,8 @@ bool ChromeContentBrowserClientPluginsPart::AllowPepperSocketAPI( |
bool private_api, |
const content::SocketPermissionRequest* params, |
const std::set<std::string>& allowed_socket_origin) { |
- Profile* profile = Profile::FromBrowserContext(browser_context); |
#if defined(ENABLE_EXTENSIONS) |
+ Profile* profile = Profile::FromBrowserContext(browser_context); |
const extensions::ExtensionSet* extension_set = NULL; |
if (profile) { |
extension_set = |