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 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1988 registry->RegisterListPref(pref_names::kNativeMessagingWhitelist, | 1988 registry->RegisterListPref(pref_names::kNativeMessagingWhitelist, |
1989 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1989 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1990 registry->RegisterBooleanPref( | 1990 registry->RegisterBooleanPref( |
1991 pref_names::kNativeMessagingUserLevelHosts, | 1991 pref_names::kNativeMessagingUserLevelHosts, |
1992 true, // default value | 1992 true, // default value |
1993 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1993 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
1994 registry->RegisterIntegerPref( | 1994 registry->RegisterIntegerPref( |
1995 kCorruptedDisableCount, | 1995 kCorruptedDisableCount, |
1996 0, // default value | 1996 0, // default value |
1997 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1997 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1998 |
| 1999 #if !defined(OS_MACOSX) |
| 2000 registry->RegisterBooleanPref( |
| 2001 pref_names::kAppFullscreenAllowed, true, |
| 2002 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 2003 #endif |
1998 } | 2004 } |
1999 | 2005 |
2000 template <class ExtensionIdContainer> | 2006 template <class ExtensionIdContainer> |
2001 bool ExtensionPrefs::GetUserExtensionPrefIntoContainer( | 2007 bool ExtensionPrefs::GetUserExtensionPrefIntoContainer( |
2002 const char* pref, | 2008 const char* pref, |
2003 ExtensionIdContainer* id_container_out) { | 2009 ExtensionIdContainer* id_container_out) { |
2004 DCHECK(id_container_out->empty()); | 2010 DCHECK(id_container_out->empty()); |
2005 | 2011 |
2006 const base::Value* user_pref_value = prefs_->GetUserPrefValue(pref); | 2012 const base::Value* user_pref_value = prefs_->GetUserPrefValue(pref); |
2007 const base::ListValue* user_pref_as_list; | 2013 const base::ListValue* user_pref_as_list; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2180 extension_pref_value_map_->RegisterExtension( | 2186 extension_pref_value_map_->RegisterExtension( |
2181 extension_id, install_time, is_enabled, is_incognito_enabled); | 2187 extension_id, install_time, is_enabled, is_incognito_enabled); |
2182 | 2188 |
2183 FOR_EACH_OBSERVER( | 2189 FOR_EACH_OBSERVER( |
2184 ExtensionPrefsObserver, | 2190 ExtensionPrefsObserver, |
2185 observer_list_, | 2191 observer_list_, |
2186 OnExtensionRegistered(extension_id, install_time, is_enabled)); | 2192 OnExtensionRegistered(extension_id, install_time, is_enabled)); |
2187 } | 2193 } |
2188 | 2194 |
2189 } // namespace extensions | 2195 } // namespace extensions |
OLD | NEW |