| 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 e3d7499e7052e80ee94e519dae39bae31ad3a2fc..44c6766750d8eaa3179a53aae6f6f627eb7ade7b 100644
|
| --- a/chrome/browser/prefs/incognito_mode_prefs.cc
|
| +++ b/chrome/browser/prefs/incognito_mode_prefs.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/time/time.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 "content/public/browser/browser_thread.h"
|
| @@ -26,9 +27,9 @@
|
| #include "base/win/windows_version.h"
|
| #endif // OS_WIN
|
|
|
| -#if defined(OS_ANDROID)
|
| +#if BUILDFLAG(ANDROID_JAVA_UI)
|
| #include "chrome/browser/android/chrome_application.h"
|
| -#endif // OS_ANDROID
|
| +#endif // BUILDFLAG(ANDROID_JAVA_UI)
|
|
|
| using content::BrowserThread;
|
|
|
| @@ -208,7 +209,7 @@ void IncognitoModePrefs::InitializePlatformParentalControls() {
|
| bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() {
|
| #if defined(OS_WIN)
|
| return PlatformParentalControlsValue::GetInstance()->is_enabled();
|
| -#elif defined(OS_ANDROID)
|
| +#elif BUILDFLAG(ANDROID_JAVA_UI)
|
| return chrome::android::ChromeApplication::AreParentalControlsEnabled();
|
| #else
|
| return false;
|
|
|