Index: chrome/browser/prefs/incognito_mode_prefs.cc |
diff --git a/chrome/browser/prefs/incognito_mode_prefs.cc b/chrome/browser/prefs/incognito_mode_prefs.cc |
index 1b021d65d0de4578a821c60a00ef8a5e02e19a81..b69acbbf45e0298429e629907efdfd1325e7af28 100644 |
--- a/chrome/browser/prefs/incognito_mode_prefs.cc |
+++ b/chrome/browser/prefs/incognito_mode_prefs.cc |
@@ -15,7 +15,6 @@ |
#include "build/build_config.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/chrome_switches.h" |
-#include "chrome/common/features.h" |
#include "chrome/common/pref_names.h" |
#include "components/pref_registry/pref_registry_syncable.h" |
#include "components/prefs/pref_service.h" |
@@ -31,9 +30,9 @@ |
#include "base/win/windows_version.h" |
#endif // OS_WIN |
-#if BUILDFLAG(ANDROID_JAVA_UI) |
+#if defined(OS_ANDROID) |
#include "chrome/browser/android/chrome_application.h" |
-#endif // BUILDFLAG(ANDROID_JAVA_UI) |
+#endif // defined(OS_ANDROID) |
using content::BrowserThread; |
@@ -209,7 +208,7 @@ void IncognitoModePrefs::InitializePlatformParentalControls() { |
bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() { |
#if defined(OS_WIN) |
return PlatformParentalControlsValue::GetInstance()->is_enabled(); |
-#elif BUILDFLAG(ANDROID_JAVA_UI) |
+#elif defined(OS_ANDROID) |
return chrome::android::ChromeApplication::AreParentalControlsEnabled(); |
#else |
return false; |