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

Unified Diff: chrome/browser/managed_mode/managed_mode.h

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a check if the passphrase is set before closing the settings. Created 7 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
Index: chrome/browser/managed_mode/managed_mode.h
diff --git a/chrome/browser/managed_mode/managed_mode.h b/chrome/browser/managed_mode/managed_mode.h
index b7250158b3d39a4d738f414a4110ebb6a091ea21..985648eb38a83c4339813d0e917b0a4c418616be 100644
--- a/chrome/browser/managed_mode/managed_mode.h
+++ b/chrome/browser/managed_mode/managed_mode.h
@@ -50,6 +50,10 @@ class ManagedMode : public chrome::BrowserListObserver,
// after g_browser_process and the LocalState have been created.
static void Init(Profile* profile);
static bool IsInManagedMode();
+ static bool IsCustodianAuthenticated();
+
+ // Sets the boolean value if a custodian is currently authenticated or not
Pam (message me for reviews) 2013/01/14 15:37:50 nit: Period at the end of the comment please.
Adrian Kuegel 2013/01/19 01:21:32 Done.
+ static void SetCustodianAuthenticated(bool isAuthenticated);
// Calls |callback| with the argument true iff managed mode was entered
// sucessfully.
@@ -117,6 +121,7 @@ class ManagedMode : public chrome::BrowserListObserver,
// The managed profile. This is NULL iff we are not in managed mode.
Profile* managed_profile_;
+ bool is_custodian_authenticated_;
private:
class URLFilterContext;

Powered by Google App Engine
This is Rietveld 408576698