Chromium Code Reviews| 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 <iterator> | 7 #include <iterator> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/prefs/pref_notifier.h" | 10 #include "base/prefs/pref_notifier.h" |
| (...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1927 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1927 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1928 registry->RegisterListPref(pref_names::kInstallAllowList, | 1928 registry->RegisterListPref(pref_names::kInstallAllowList, |
| 1929 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1929 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1930 registry->RegisterListPref(pref_names::kInstallDenyList, | 1930 registry->RegisterListPref(pref_names::kInstallDenyList, |
| 1931 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1931 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1932 registry->RegisterDictionaryPref( | 1932 registry->RegisterDictionaryPref( |
| 1933 pref_names::kInstallForceList, | 1933 pref_names::kInstallForceList, |
| 1934 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1934 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1935 registry->RegisterListPref(pref_names::kAllowedTypes, | 1935 registry->RegisterListPref(pref_names::kAllowedTypes, |
| 1936 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1936 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1937 registry->RegisterDictionaryPref( | |
| 1938 pref_names::kExtensionManagement, | |
| 1939 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
|
Joao da Silva
2014/09/18 12:08:22
This pref should only be used by ExtensionManageme
binjin
2014/09/18 14:37:27
Done.
| |
| 1937 registry->RegisterBooleanPref( | 1940 registry->RegisterBooleanPref( |
| 1938 pref_names::kStorageGarbageCollect, | 1941 pref_names::kStorageGarbageCollect, |
| 1939 false, // default value | 1942 false, // default value |
| 1940 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1943 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1941 registry->RegisterInt64Pref( | 1944 registry->RegisterInt64Pref( |
| 1942 pref_names::kLastUpdateCheck, | 1945 pref_names::kLastUpdateCheck, |
| 1943 0, // default value | 1946 0, // default value |
| 1944 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1947 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1945 registry->RegisterInt64Pref( | 1948 registry->RegisterInt64Pref( |
| 1946 pref_names::kNextUpdateCheck, | 1949 pref_names::kNextUpdateCheck, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2159 extension_pref_value_map_->RegisterExtension( | 2162 extension_pref_value_map_->RegisterExtension( |
| 2160 extension_id, install_time, is_enabled, is_incognito_enabled); | 2163 extension_id, install_time, is_enabled, is_incognito_enabled); |
| 2161 | 2164 |
| 2162 FOR_EACH_OBSERVER( | 2165 FOR_EACH_OBSERVER( |
| 2163 ExtensionPrefsObserver, | 2166 ExtensionPrefsObserver, |
| 2164 observer_list_, | 2167 observer_list_, |
| 2165 OnExtensionRegistered(extension_id, install_time, is_enabled)); | 2168 OnExtensionRegistered(extension_id, install_time, is_enabled)); |
| 2166 } | 2169 } |
| 2167 | 2170 |
| 2168 } // namespace extensions | 2171 } // namespace extensions |
| OLD | NEW |