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 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1965 0, // default value | 1965 0, // default value |
1966 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1966 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1967 registry->RegisterListPref(pref_names::kAllowedInstallSites, | 1967 registry->RegisterListPref(pref_names::kAllowedInstallSites, |
1968 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1968 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1969 registry->RegisterStringPref( | 1969 registry->RegisterStringPref( |
1970 pref_names::kLastChromeVersion, | 1970 pref_names::kLastChromeVersion, |
1971 std::string(), // default value | 1971 std::string(), // default value |
1972 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1972 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1973 registry->RegisterListPref(pref_names::kKnownDisabled, | 1973 registry->RegisterListPref(pref_names::kKnownDisabled, |
1974 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1974 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1975 #if defined(TOOLKIT_VIEWS) | 1975 #if defined(OS_MACOSX) |
1976 registry->RegisterDoublePref( | |
1977 pref_names::kBrowserActionContainerWidth, | |
1978 0, | |
1979 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
1980 #else | |
Bernhard Bauer
2014/07/09 08:16:15
I find it a bit weird that the same pref will have
tapted
2014/07/09 11:21:53
The rationale is likely to be that Cocoa uses floa
| |
1976 registry->RegisterIntegerPref( | 1981 registry->RegisterIntegerPref( |
1977 pref_names::kBrowserActionContainerWidth, | 1982 pref_names::kBrowserActionContainerWidth, |
1978 0, | 1983 0, |
1979 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1984 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1980 #endif | 1985 #endif |
1981 registry->RegisterDictionaryPref( | 1986 registry->RegisterDictionaryPref( |
1982 kInstallSignature, | 1987 kInstallSignature, |
1983 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1988 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1984 | 1989 |
1985 registry->RegisterListPref(pref_names::kNativeMessagingBlacklist, | 1990 registry->RegisterListPref(pref_names::kNativeMessagingBlacklist, |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2180 extension_pref_value_map_->RegisterExtension( | 2185 extension_pref_value_map_->RegisterExtension( |
2181 extension_id, install_time, is_enabled, is_incognito_enabled); | 2186 extension_id, install_time, is_enabled, is_incognito_enabled); |
2182 | 2187 |
2183 FOR_EACH_OBSERVER( | 2188 FOR_EACH_OBSERVER( |
2184 ExtensionPrefsObserver, | 2189 ExtensionPrefsObserver, |
2185 observer_list_, | 2190 observer_list_, |
2186 OnExtensionRegistered(extension_id, install_time, is_enabled)); | 2191 OnExtensionRegistered(extension_id, install_time, is_enabled)); |
2187 } | 2192 } |
2188 | 2193 |
2189 } // namespace extensions | 2194 } // namespace extensions |
OLD | NEW |