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

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

Issue 969813005: Unify the Windows Parental Controls Platform Caching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 0837cb43e452a2f2475d3a70a5b364705a6041ae..36c0c72a73dcb801960cf0a512a8ab4d08cb00b0 100644
--- a/chrome/browser/prefs/incognito_mode_prefs.h
+++ b/chrome/browser/prefs/incognito_mode_prefs.h
@@ -64,21 +64,12 @@ class IncognitoModePrefs {
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.
+ // method evaluates and caches if the platform controls have been enabled on
+ // the first call, which must be on the UI thread when IO and blocking are
+ // allowed. Subsequent calls may be from any thread.
static bool ArePlatformParentalControlsEnabled();
+ private:
DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs);
};

Powered by Google App Engine
This is Rietveld 408576698