| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/prefs.h" | 5 #include "apps/prefs.h" |
| 6 | 6 |
| 7 #include "apps/pref_names.h" | 7 #include "apps/pref_names.h" |
| 8 #include "base/prefs/pref_registry_simple.h" | 8 #include "base/prefs/pref_registry_simple.h" |
| 9 #include "components/user_prefs/pref_registry_syncable.h" | 9 #include "components/user_prefs/pref_registry_syncable.h" |
| 10 | 10 |
| 11 namespace apps { | 11 namespace apps { |
| 12 | 12 |
| 13 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 13 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 14 #if !defined(OS_MACOSX) | 14 #if !defined(OS_MACOSX) |
| 15 registry->RegisterBooleanPref( | 15 registry->RegisterBooleanPref( |
| 16 prefs::kAppFullscreenAllowed, true, | 16 prefs::kAppFullscreenAllowed, true, |
| 17 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 17 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 18 #endif | 18 #endif |
| 19 } | 19 } |
| 20 | 20 |
| 21 void RegisterPrefs(PrefRegistrySimple* registry) { |
| 22 #if defined(OS_MACOSX) |
| 23 registry->RegisterBooleanPref(prefs::kNotifyWhenAppsKeepChromeAlive, true); |
| 24 #endif |
| 25 } |
| 26 |
| 21 } // namespace apps | 27 } // namespace apps |
| OLD | NEW |