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/extensions/permissions_updater.h" | 12 #include "chrome/browser/extensions/permissions_updater.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 14 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 16 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
17 #include "chrome/common/extensions/sync_helper.h" | 17 #include "chrome/common/extensions/sync_helper.h" |
18 #include "content/public/browser/site_instance.h" | 18 #include "content/public/browser/site_instance.h" |
19 #include "extensions/browser/extension_prefs.h" | 19 #include "extensions/browser/extension_prefs.h" |
20 #include "extensions/browser/extension_registry.h" | 20 #include "extensions/browser/extension_registry.h" |
21 #include "extensions/browser/extension_system.h" | 21 #include "extensions/browser/extension_system.h" |
22 #include "extensions/browser/extension_util.h" | 22 #include "extensions/browser/extension_util.h" |
23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
24 #include "extensions/common/extension_icon_set.h" | 24 #include "extensions/common/extension_icon_set.h" |
25 #include "extensions/common/feature_switch.h" | 25 #include "extensions/common/feature_switch.h" |
26 #include "extensions/common/features/simple_feature.h" | 26 #include "extensions/common/features/simple_feature.h" |
27 #include "extensions/common/manifest.h" | 27 #include "extensions/common/manifest.h" |
28 #include "extensions/common/manifest_handlers/incognito_info.h" | 28 #include "extensions/common/manifest_handlers/incognito_info.h" |
29 #include "extensions/common/permissions/permissions_data.h" | 29 #include "extensions/common/permissions/permissions_data.h" |
30 #include "grit/theme_resources.h" | 30 #include "extensions/grit/extensions_browser_resources.h" |
31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
32 | 32 |
33 namespace extensions { | 33 namespace extensions { |
34 namespace util { | 34 namespace util { |
35 | 35 |
36 namespace { | 36 namespace { |
37 // The entry into the ExtensionPrefs for allowing an extension to script on | 37 // The entry into the ExtensionPrefs for allowing an extension to script on |
38 // all urls without explicit permission. | 38 // all urls without explicit permission. |
39 const char kExtensionAllowedOnAllUrlsPrefName[] = | 39 const char kExtensionAllowedOnAllUrlsPrefName[] = |
40 "extension_can_script_all_urls"; | 40 "extension_can_script_all_urls"; |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 IDR_EXTENSION_DEFAULT_ICON); | 323 IDR_EXTENSION_DEFAULT_ICON); |
324 } | 324 } |
325 | 325 |
326 bool IsStreamlinedHostedAppsEnabled() { | 326 bool IsStreamlinedHostedAppsEnabled() { |
327 return CommandLine::ForCurrentProcess()->HasSwitch( | 327 return CommandLine::ForCurrentProcess()->HasSwitch( |
328 switches::kEnableStreamlinedHostedApps); | 328 switches::kEnableStreamlinedHostedApps); |
329 } | 329 } |
330 | 330 |
331 } // namespace util | 331 } // namespace util |
332 } // namespace extensions | 332 } // namespace extensions |
OLD | NEW |