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 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 registry->RegisterInt64Pref( | 1977 registry->RegisterInt64Pref( |
1978 pref_names::kNextUpdateCheck, | 1978 pref_names::kNextUpdateCheck, |
1979 0, // default value | 1979 0, // default value |
1980 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1980 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1981 registry->RegisterListPref(pref_names::kAllowedInstallSites, | 1981 registry->RegisterListPref(pref_names::kAllowedInstallSites, |
1982 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1982 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1983 registry->RegisterStringPref( | 1983 registry->RegisterStringPref( |
1984 pref_names::kLastChromeVersion, | 1984 pref_names::kLastChromeVersion, |
1985 std::string(), // default value | 1985 std::string(), // default value |
1986 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1986 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1987 #if defined(OS_MACOSX) | |
1988 registry->RegisterDoublePref( | |
1989 pref_names::kBrowserActionContainerWidth, | |
1990 0, | |
1991 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
1992 #else | |
1993 registry->RegisterIntegerPref( | |
1994 pref_names::kBrowserActionContainerWidth, | |
1995 0, | |
1996 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
1997 #endif | |
1998 registry->RegisterDictionaryPref( | 1987 registry->RegisterDictionaryPref( |
1999 kInstallSignature, | 1988 kInstallSignature, |
2000 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1989 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
2001 | 1990 |
2002 registry->RegisterListPref(pref_names::kNativeMessagingBlacklist, | 1991 registry->RegisterListPref(pref_names::kNativeMessagingBlacklist, |
2003 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1992 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
2004 registry->RegisterListPref(pref_names::kNativeMessagingWhitelist, | 1993 registry->RegisterListPref(pref_names::kNativeMessagingWhitelist, |
2005 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1994 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
2006 registry->RegisterBooleanPref( | 1995 registry->RegisterBooleanPref( |
2007 pref_names::kNativeMessagingUserLevelHosts, | 1996 pref_names::kNativeMessagingUserLevelHosts, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2201 extension_pref_value_map_->RegisterExtension( | 2190 extension_pref_value_map_->RegisterExtension( |
2202 extension_id, install_time, is_enabled, is_incognito_enabled); | 2191 extension_id, install_time, is_enabled, is_incognito_enabled); |
2203 | 2192 |
2204 FOR_EACH_OBSERVER( | 2193 FOR_EACH_OBSERVER( |
2205 ExtensionPrefsObserver, | 2194 ExtensionPrefsObserver, |
2206 observer_list_, | 2195 observer_list_, |
2207 OnExtensionRegistered(extension_id, install_time, is_enabled)); | 2196 OnExtensionRegistered(extension_id, install_time, is_enabled)); |
2208 } | 2197 } |
2209 | 2198 |
2210 } // namespace extensions | 2199 } // namespace extensions |
OLD | NEW |