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

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

Issue 336213005: Disable incognito link if parental control is on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's comments addressed Created 6 years, 6 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/chrome_browser_main_win.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 d7d8d29160fb4dc244e3721709efc1d3e8bb723c..2ba2e14b29ef4c5ea0dd5d96fa36a82d7c1c4477 100644
--- a/chrome/browser/prefs/incognito_mode_prefs.h
+++ b/chrome/browser/prefs/incognito_mode_prefs.h
@@ -63,6 +63,17 @@ class IncognitoModePrefs {
// open new windows.
static bool CanOpenBrowser(Profile* profile);
+ // Returns whether parental controls have been enabled on the platform. This
+ // method simply returns a cached value and thus the result may be stale. May
+ // be called on any thread.
+ static bool ArePlatformParentalControlsEnabledCached();
+
+#if defined(OS_WIN)
+ // Initializes the parental control settings. Must be called on UI thread and
+ // before |ArePlatformParentalControlsEnabled|.
+ static void InitializePlatformParentalControls();
+#endif // OS_WIN
+
private:
// Returns whether parental controls have been enabled on the platform, which
// if enabled will overrule the Availability as configured in prefs.
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/prefs/incognito_mode_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698