| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/external_provider_impl.h" | 5 #include "chrome/browser/extensions/external_provider_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/memory/linked_ptr.h" | 15 #include "base/memory/linked_ptr.h" |
| 16 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 17 #include "base/prefs/pref_service.h" | |
| 18 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 19 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
| 20 #include "base/values.h" | 19 #include "base/values.h" |
| 21 #include "base/version.h" | 20 #include "base/version.h" |
| 22 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 23 #include "chrome/browser/app_mode/app_mode_utils.h" | 22 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 24 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/browser_process_platform_part.h" | 24 #include "chrome/browser/browser_process_platform_part.h" |
| 26 #include "chrome/browser/extensions/extension_management.h" | 25 #include "chrome/browser/extensions/extension_management.h" |
| 27 #include "chrome/browser/extensions/extension_migrator.h" | 26 #include "chrome/browser/extensions/extension_migrator.h" |
| 28 #include "chrome/browser/extensions/extension_service.h" | 27 #include "chrome/browser/extensions/extension_service.h" |
| 29 #include "chrome/browser/extensions/external_component_loader.h" | 28 #include "chrome/browser/extensions/external_component_loader.h" |
| 30 #include "chrome/browser/extensions/external_policy_loader.h" | 29 #include "chrome/browser/extensions/external_policy_loader.h" |
| 31 #include "chrome/browser/extensions/external_pref_loader.h" | 30 #include "chrome/browser/extensions/external_pref_loader.h" |
| 32 #include "chrome/browser/policy/profile_policy_connector.h" | 31 #include "chrome/browser/policy/profile_policy_connector.h" |
| 33 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 32 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 34 #include "chrome/browser/profiles/profile.h" | 33 #include "chrome/browser/profiles/profile.h" |
| 35 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
| 36 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/extensions/extension_constants.h" | 36 #include "chrome/common/extensions/extension_constants.h" |
| 38 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
| 39 #include "components/crx_file/id_util.h" | 38 #include "components/crx_file/id_util.h" |
| 39 #include "components/prefs/pref_service.h" |
| 40 #include "content/public/browser/browser_thread.h" | 40 #include "content/public/browser/browser_thread.h" |
| 41 #include "extensions/browser/extension_system.h" | 41 #include "extensions/browser/extension_system.h" |
| 42 #include "extensions/browser/external_install_info.h" | 42 #include "extensions/browser/external_install_info.h" |
| 43 #include "extensions/browser/external_provider_interface.h" | 43 #include "extensions/browser/external_provider_interface.h" |
| 44 #include "extensions/common/extension.h" | 44 #include "extensions/common/extension.h" |
| 45 #include "extensions/common/manifest.h" | 45 #include "extensions/common/manifest.h" |
| 46 #include "ui/base/l10n/l10n_util.h" | 46 #include "ui/base/l10n/l10n_util.h" |
| 47 | 47 |
| 48 #if defined(OS_CHROMEOS) | 48 #if defined(OS_CHROMEOS) |
| 49 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 49 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 new ExternalProviderImpl( | 740 new ExternalProviderImpl( |
| 741 service, | 741 service, |
| 742 new ExternalComponentLoader(profile), | 742 new ExternalComponentLoader(profile), |
| 743 profile, | 743 profile, |
| 744 Manifest::INVALID_LOCATION, | 744 Manifest::INVALID_LOCATION, |
| 745 Manifest::EXTERNAL_COMPONENT, | 745 Manifest::EXTERNAL_COMPONENT, |
| 746 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); | 746 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); |
| 747 } | 747 } |
| 748 | 748 |
| 749 } // namespace extensions | 749 } // namespace extensions |
| OLD | NEW |