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

Unified Diff: chrome/browser/android/chromium_application.cc

Issue 136693011: Disable incognito if parental controls are enabled on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep native_test as the package to be compliant w/ testing framework Created 6 years, 11 months 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
« no previous file with comments | « chrome/browser/android/chromium_application.h ('k') | chrome/browser/prefs/incognito_mode_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/chromium_application.cc
diff --git a/chrome/browser/android/chromium_application.cc b/chrome/browser/android/chromium_application.cc
index 270a3f11bcced96fc197dabd5cd652c1a2420e9c..ff77aa556acbd7a4cfd7f622797d037d4803dbbe 100644
--- a/chrome/browser/android/chromium_application.cc
+++ b/chrome/browser/android/chromium_application.cc
@@ -33,5 +33,11 @@ void ChromiumApplication::ShowTermsOfServiceDialog() {
base::android::GetApplicationContext());
}
+bool ChromiumApplication::AreParentalControlsEnabled() {
+ return Java_ChromiumApplication_areParentalControlsEnabled(
+ base::android::AttachCurrentThread(),
+ base::android::GetApplicationContext());
+}
+
} // namespace android
} // namespace chrome
« no previous file with comments | « chrome/browser/android/chromium_application.h ('k') | chrome/browser/prefs/incognito_mode_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698