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

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

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.cc ('k') | chrome/browser/prefs/incognito_mode_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/incognito_mode_prefs.h
diff --git a/chrome/browser/prefs/incognito_mode_prefs.h b/chrome/browser/prefs/incognito_mode_prefs.h
index 9f366a63c9dc0f1eb8f05d72b320644b446754b8..698250fc9f0c3512512c876deb26ceb231ec5a8d 100644
--- a/chrome/browser/prefs/incognito_mode_prefs.h
+++ b/chrome/browser/prefs/incognito_mode_prefs.h
@@ -61,6 +61,10 @@ class IncognitoModePrefs {
static bool CanOpenBrowser(Profile* profile);
private:
+ // Returns whether parental controls have been enabled on the platform, which
+ // if enabled will overrule the Availability as configured in prefs.
+ static bool ArePlatformParentalControlsEnabled();
+
DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs);
};
« no previous file with comments | « chrome/browser/android/chromium_application.cc ('k') | chrome/browser/prefs/incognito_mode_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698