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

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: CR Feedback 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
« 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 0837cb43e452a2f2475d3a70a5b364705a6041ae..6cb3f90c9bca00ae976fc3d36db8c86bf6211fc7 100644
--- a/chrome/browser/prefs/incognito_mode_prefs.h
+++ b/chrome/browser/prefs/incognito_mode_prefs.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
class PrefService;
class Profile;
@@ -64,21 +65,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
+ // 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.
gab 2015/03/04 19:21:20 Also mention that this must be called on the main
+ static bool ArePlatformParentalControlsEnabled() WARN_UNUSED_RESULT;
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/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