OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/browser_ui_prefs.h" | 5 #include "chrome/browser/ui/browser_ui_prefs.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "chrome/browser/first_run/first_run.h" | 8 #include "chrome/browser/first_run/first_run.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
11 #include "components/pref_registry/pref_registry_syncable.h" | 11 #include "components/pref_registry/pref_registry_syncable.h" |
12 #include "components/prefs/pref_registry_simple.h" | 12 #include "components/prefs/pref_registry_simple.h" |
13 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
14 #include "components/prefs/scoped_user_pref_update.h" | 14 #include "components/prefs/scoped_user_pref_update.h" |
15 #include "components/translate/core/browser/translate_pref_names.h" | 15 #include "components/translate/core/browser/translate_pref_names.h" |
16 #include "content/public/common/webrtc_ip_handling_policy.h" | 16 #include "content/public/common/webrtc_ip_handling_policy.h" |
17 #include "media/media_features.h" | 17 #include "media/media_features.h" |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 uint32_t GetHomeButtonAndHomePageIsNewTabPageFlags() { | 25 uint32_t GetHomeButtonAndHomePageIsNewTabPageFlags() { |
26 #if defined(OS_IOS) || defined(OS_ANDROID) | 26 #if defined(OS_ANDROID) |
27 return PrefRegistry::NO_REGISTRATION_FLAGS; | 27 return PrefRegistry::NO_REGISTRATION_FLAGS; |
28 #else | 28 #else |
29 return user_prefs::PrefRegistrySyncable::SYNCABLE_PREF; | 29 return user_prefs::PrefRegistrySyncable::SYNCABLE_PREF; |
30 #endif | 30 #endif |
31 } | 31 } |
32 | 32 |
33 } // namespace | 33 } // namespace |
34 | 34 |
35 namespace chrome { | 35 namespace chrome { |
36 | 36 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 registry->RegisterBooleanPref( | 111 registry->RegisterBooleanPref( |
112 prefs::kShowFullscreenToolbar, | 112 prefs::kShowFullscreenToolbar, |
113 true, | 113 true, |
114 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 114 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
115 #else | 115 #else |
116 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); | 116 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); |
117 #endif | 117 #endif |
118 } | 118 } |
119 | 119 |
120 } // namespace chrome | 120 } // namespace chrome |
OLD | NEW |