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/prefs/incognito_mode_prefs.h" | 5 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/prefs/pref_service.h" | |
14 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
15 #include "base/time/time.h" | 14 #include "base/time/time.h" |
16 #include "build/build_config.h" | 15 #include "build/build_config.h" |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/features.h" | 18 #include "chrome/common/features.h" |
20 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
21 #include "components/pref_registry/pref_registry_syncable.h" | 20 #include "components/pref_registry/pref_registry_syncable.h" |
| 21 #include "components/prefs/pref_service.h" |
22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
23 | 23 |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 #include <windows.h> | 25 #include <windows.h> |
26 #include <wpcapi.h> | 26 #include <wpcapi.h> |
27 #include "base/bind.h" | 27 #include "base/bind.h" |
28 #include "base/bind_helpers.h" | 28 #include "base/bind_helpers.h" |
29 #include "base/memory/singleton.h" | 29 #include "base/memory/singleton.h" |
30 #include "base/win/scoped_comptr.h" | 30 #include "base/win/scoped_comptr.h" |
31 #include "base/win/windows_version.h" | 31 #include "base/win/windows_version.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() { | 213 bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() { |
214 #if defined(OS_WIN) | 214 #if defined(OS_WIN) |
215 return PlatformParentalControlsValue::GetInstance()->is_enabled(); | 215 return PlatformParentalControlsValue::GetInstance()->is_enabled(); |
216 #elif BUILDFLAG(ANDROID_JAVA_UI) | 216 #elif BUILDFLAG(ANDROID_JAVA_UI) |
217 return chrome::android::ChromeApplication::AreParentalControlsEnabled(); | 217 return chrome::android::ChromeApplication::AreParentalControlsEnabled(); |
218 #else | 218 #else |
219 return false; | 219 return false; |
220 #endif | 220 #endif |
221 } | 221 } |
222 | 222 |
OLD | NEW |