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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/extensions/external_provider_impl.h" | 21 #include "chrome/browser/extensions/external_provider_impl.h" |
22 #include "chrome/browser/extensions/permissions_based_management_policy_provider
.h" | 22 #include "chrome/browser/extensions/permissions_based_management_policy_provider
.h" |
23 #include "chrome/browser/extensions/standard_management_policy_provider.h" | 23 #include "chrome/browser/extensions/standard_management_policy_provider.h" |
24 #include "chrome/browser/profiles/incognito_helpers.h" | 24 #include "chrome/browser/profiles/incognito_helpers.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "components/crx_file/id_util.h" | 26 #include "components/crx_file/id_util.h" |
27 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 27 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
28 #include "components/pref_registry/pref_registry_syncable.h" | 28 #include "components/pref_registry/pref_registry_syncable.h" |
29 #include "components/prefs/pref_service.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/extension.h" |
31 #include "extensions/common/manifest_constants.h" | 32 #include "extensions/common/manifest_constants.h" |
32 #include "extensions/common/permissions/api_permission_set.h" | 33 #include "extensions/common/permissions/api_permission_set.h" |
33 #include "extensions/common/permissions/permission_set.h" | 34 #include "extensions/common/permissions/permission_set.h" |
34 #include "extensions/common/url_pattern.h" | 35 #include "extensions/common/url_pattern.h" |
35 #include "url/gurl.h" | 36 #include "url/gurl.h" |
36 | 37 |
37 namespace extensions { | 38 namespace extensions { |
38 | 39 |
39 ExtensionManagement::ExtensionManagement(PrefService* pref_service) | 40 ExtensionManagement::ExtensionManagement(PrefService* pref_service) |
40 : pref_service_(pref_service) { | 41 : pref_service_(pref_service) { |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 content::BrowserContext* context) const { | 494 content::BrowserContext* context) const { |
494 return chrome::GetBrowserContextRedirectedInIncognito(context); | 495 return chrome::GetBrowserContextRedirectedInIncognito(context); |
495 } | 496 } |
496 | 497 |
497 void ExtensionManagementFactory::RegisterProfilePrefs( | 498 void ExtensionManagementFactory::RegisterProfilePrefs( |
498 user_prefs::PrefRegistrySyncable* user_prefs) { | 499 user_prefs::PrefRegistrySyncable* user_prefs) { |
499 user_prefs->RegisterDictionaryPref(pref_names::kExtensionManagement); | 500 user_prefs->RegisterDictionaryPref(pref_names::kExtensionManagement); |
500 } | 501 } |
501 | 502 |
502 } // namespace extensions | 503 } // namespace extensions |
OLD | NEW |