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 "extensions/browser/extension_prefs.h" | 5 #include "extensions/browser/extension_prefs.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <iterator> | 10 #include <iterator> |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 void ExtensionPrefs::RegisterProfilePrefs( | 1778 void ExtensionPrefs::RegisterProfilePrefs( |
1779 user_prefs::PrefRegistrySyncable* registry) { | 1779 user_prefs::PrefRegistrySyncable* registry) { |
1780 registry->RegisterDictionaryPref(pref_names::kExtensions); | 1780 registry->RegisterDictionaryPref(pref_names::kExtensions); |
1781 registry->RegisterListPref(pref_names::kToolbar, | 1781 registry->RegisterListPref(pref_names::kToolbar, |
1782 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 1782 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
1783 registry->RegisterIntegerPref(pref_names::kToolbarSize, -1); | 1783 registry->RegisterIntegerPref(pref_names::kToolbarSize, -1); |
1784 registry->RegisterDictionaryPref(kExtensionsBlacklistUpdate); | 1784 registry->RegisterDictionaryPref(kExtensionsBlacklistUpdate); |
1785 registry->RegisterListPref(pref_names::kInstallAllowList); | 1785 registry->RegisterListPref(pref_names::kInstallAllowList); |
1786 registry->RegisterListPref(pref_names::kInstallDenyList); | 1786 registry->RegisterListPref(pref_names::kInstallDenyList); |
1787 registry->RegisterDictionaryPref(pref_names::kInstallForceList); | 1787 registry->RegisterDictionaryPref(pref_names::kInstallForceList); |
| 1788 registry->RegisterDictionaryPref(pref_names::kInstallLoginList); |
1788 registry->RegisterListPref(pref_names::kAllowedTypes); | 1789 registry->RegisterListPref(pref_names::kAllowedTypes); |
1789 registry->RegisterBooleanPref(pref_names::kStorageGarbageCollect, false); | 1790 registry->RegisterBooleanPref(pref_names::kStorageGarbageCollect, false); |
1790 registry->RegisterInt64Pref(pref_names::kLastUpdateCheck, 0); | 1791 registry->RegisterInt64Pref(pref_names::kLastUpdateCheck, 0); |
1791 registry->RegisterInt64Pref(pref_names::kNextUpdateCheck, 0); | 1792 registry->RegisterInt64Pref(pref_names::kNextUpdateCheck, 0); |
1792 registry->RegisterListPref(pref_names::kAllowedInstallSites); | 1793 registry->RegisterListPref(pref_names::kAllowedInstallSites); |
1793 registry->RegisterStringPref(pref_names::kLastChromeVersion, std::string()); | 1794 registry->RegisterStringPref(pref_names::kLastChromeVersion, std::string()); |
1794 registry->RegisterDictionaryPref(kInstallSignature); | 1795 registry->RegisterDictionaryPref(kInstallSignature); |
1795 | 1796 |
1796 registry->RegisterListPref(pref_names::kNativeMessagingBlacklist); | 1797 registry->RegisterListPref(pref_names::kNativeMessagingBlacklist); |
1797 registry->RegisterListPref(pref_names::kNativeMessagingWhitelist); | 1798 registry->RegisterListPref(pref_names::kNativeMessagingWhitelist); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 extension_pref_value_map_->RegisterExtension( | 1987 extension_pref_value_map_->RegisterExtension( |
1987 extension_id, install_time, is_enabled, is_incognito_enabled); | 1988 extension_id, install_time, is_enabled, is_incognito_enabled); |
1988 | 1989 |
1989 FOR_EACH_OBSERVER( | 1990 FOR_EACH_OBSERVER( |
1990 ExtensionPrefsObserver, | 1991 ExtensionPrefsObserver, |
1991 observer_list_, | 1992 observer_list_, |
1992 OnExtensionRegistered(extension_id, install_time, is_enabled)); | 1993 OnExtensionRegistered(extension_id, install_time, is_enabled)); |
1993 } | 1994 } |
1994 | 1995 |
1995 } // namespace extensions | 1996 } // namespace extensions |
OLD | NEW |