| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_management.h" | 5 #include "chrome/browser/extensions/extension_management.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/prefs/pref_service.h" | |
| 15 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 16 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 17 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
| 18 #include "base/version.h" | 17 #include "base/version.h" |
| 19 #include "chrome/browser/extensions/extension_management_constants.h" | 18 #include "chrome/browser/extensions/extension_management_constants.h" |
| 20 #include "chrome/browser/extensions/extension_management_internal.h" | 19 #include "chrome/browser/extensions/extension_management_internal.h" |
| 21 #include "chrome/browser/extensions/external_policy_loader.h" | 20 #include "chrome/browser/extensions/external_policy_loader.h" |
| 22 #include "chrome/browser/extensions/external_provider_impl.h" | 21 #include "chrome/browser/extensions/external_provider_impl.h" |
| 23 #include "chrome/browser/extensions/permissions_based_management_policy_provider
.h" | 22 #include "chrome/browser/extensions/permissions_based_management_policy_provider
.h" |
| 24 #include "chrome/browser/extensions/standard_management_policy_provider.h" | 23 #include "chrome/browser/extensions/standard_management_policy_provider.h" |
| 25 #include "chrome/browser/profiles/incognito_helpers.h" | 24 #include "chrome/browser/profiles/incognito_helpers.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 27 #include "components/crx_file/id_util.h" | 26 #include "components/crx_file/id_util.h" |
| 28 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 27 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 29 #include "components/pref_registry/pref_registry_syncable.h" | 28 #include "components/pref_registry/pref_registry_syncable.h" |
| 29 #include "components/prefs/pref_service.h" |
| 30 #include "extensions/browser/pref_names.h" | 30 #include "extensions/browser/pref_names.h" |
| 31 #include "extensions/common/manifest_constants.h" | 31 #include "extensions/common/manifest_constants.h" |
| 32 #include "extensions/common/permissions/api_permission_set.h" | 32 #include "extensions/common/permissions/api_permission_set.h" |
| 33 #include "extensions/common/permissions/permission_set.h" | 33 #include "extensions/common/permissions/permission_set.h" |
| 34 #include "extensions/common/url_pattern.h" | 34 #include "extensions/common/url_pattern.h" |
| 35 #include "url/gurl.h" | 35 #include "url/gurl.h" |
| 36 | 36 |
| 37 namespace extensions { | 37 namespace extensions { |
| 38 | 38 |
| 39 ExtensionManagement::ExtensionManagement(PrefService* pref_service) | 39 ExtensionManagement::ExtensionManagement(PrefService* pref_service) |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 content::BrowserContext* context) const { | 491 content::BrowserContext* context) const { |
| 492 return chrome::GetBrowserContextRedirectedInIncognito(context); | 492 return chrome::GetBrowserContextRedirectedInIncognito(context); |
| 493 } | 493 } |
| 494 | 494 |
| 495 void ExtensionManagementFactory::RegisterProfilePrefs( | 495 void ExtensionManagementFactory::RegisterProfilePrefs( |
| 496 user_prefs::PrefRegistrySyncable* user_prefs) { | 496 user_prefs::PrefRegistrySyncable* user_prefs) { |
| 497 user_prefs->RegisterDictionaryPref(pref_names::kExtensionManagement); | 497 user_prefs->RegisterDictionaryPref(pref_names::kExtensionManagement); |
| 498 } | 498 } |
| 499 | 499 |
| 500 } // namespace extensions | 500 } // namespace extensions |
| OLD | NEW |