Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: chrome/browser/prefs/incognito_mode_prefs.cc

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b2187e3d9ad2f5ce0e87008252054bed97349e46 100644
--- a/chrome/browser/prefs/incognito_mode_prefs.cc
+++ b/chrome/browser/prefs/incognito_mode_prefs.cc
@@ -26,9 +26,9 @@
#include "base/win/windows_version.h"
#endif // OS_WIN
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
#include "chrome/browser/android/chrome_application.h"
-#endif // OS_ANDROID
+#endif // ANDROID_JAVA_UI
using content::BrowserThread;
@@ -208,7 +208,7 @@ void IncognitoModePrefs::InitializePlatformParentalControls() {
bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() {
#if defined(OS_WIN)
return PlatformParentalControlsValue::GetInstance()->is_enabled();
-#elif defined(OS_ANDROID)
+#elif defined(ANDROID_JAVA_UI)
return chrome::android::ChromeApplication::AreParentalControlsEnabled();
#else
return false;

Powered by Google App Engine
This is Rietveld 408576698