| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/extension_util.h" | 5 #include "chrome/browser/extensions/extension_util.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/extensions/extension_sync_service.h" | 11 #include "chrome/browser/extensions/extension_sync_service.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 13 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/extensions/extension_icon_set.h" | |
| 16 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 15 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
| 17 #include "chrome/common/extensions/sync_helper.h" | 16 #include "chrome/common/extensions/sync_helper.h" |
| 18 #include "content/public/browser/site_instance.h" | 17 #include "content/public/browser/site_instance.h" |
| 19 #include "extensions/browser/extension_prefs.h" | 18 #include "extensions/browser/extension_prefs.h" |
| 20 #include "extensions/browser/extension_registry.h" | 19 #include "extensions/browser/extension_registry.h" |
| 21 #include "extensions/browser/extension_system.h" | 20 #include "extensions/browser/extension_system.h" |
| 22 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
| 22 #include "extensions/common/extension_icon_set.h" |
| 23 #include "extensions/common/manifest.h" | 23 #include "extensions/common/manifest.h" |
| 24 #include "extensions/common/manifest_handlers/incognito_info.h" | 24 #include "extensions/common/manifest_handlers/incognito_info.h" |
| 25 | 25 |
| 26 namespace extensions { | 26 namespace extensions { |
| 27 namespace util { | 27 namespace util { |
| 28 | 28 |
| 29 bool IsIncognitoEnabled(const std::string& extension_id, | 29 bool IsIncognitoEnabled(const std::string& extension_id, |
| 30 content::BrowserContext* context) { | 30 content::BrowserContext* context) { |
| 31 const Extension* extension = ExtensionRegistry::Get(context)-> | 31 const Extension* extension = ExtensionRegistry::Get(context)-> |
| 32 GetExtensionById(extension_id, ExtensionRegistry::ENABLED); | 32 GetExtensionById(extension_id, ExtensionRegistry::ENABLED); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 extension_site_url.host()); | 235 extension_site_url.host()); |
| 236 if (info.get()) | 236 if (info.get()) |
| 237 return HasIsolatedStorage(*info); | 237 return HasIsolatedStorage(*info); |
| 238 } | 238 } |
| 239 | 239 |
| 240 return false; | 240 return false; |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace util | 243 } // namespace util |
| 244 } // namespace extensions | 244 } // namespace extensions |
| OLD | NEW |