Index: chrome/browser/managed_mode/managed_user_service.h |
diff --git a/chrome/browser/managed_mode/managed_user_service.h b/chrome/browser/managed_mode/managed_user_service.h |
index 8be4a06b223343d7ee4836cf6206674bc3a827e7..7d862e8e4a7a9e90ab85650d8f11e2293125d52c 100644 |
--- a/chrome/browser/managed_mode/managed_user_service.h |
+++ b/chrome/browser/managed_mode/managed_user_service.h |
@@ -106,6 +106,14 @@ class ManagedUserService : public ProfileKeyedService, |
// managed. |
void Init(); |
+ void set_startup_elevation(bool elevation) { |
+ startup_elevation_ = elevation; |
+ } |
+ |
+ bool startup_elevation() const { |
+ return startup_elevation_; |
+ } |
+ |
// extensions::ManagementPolicy::Provider implementation: |
virtual std::string GetDebugPolicyProviderName() const OVERRIDE; |
virtual bool UserMayLoad(const extensions::Extension* extension, |
@@ -179,6 +187,9 @@ class ManagedUserService : public ProfileKeyedService, |
// Owns us via the ProfileKeyedService mechanism. |
Profile* profile_; |
+ // Is true if the managed user should start in elevated mode. |
+ bool startup_elevation_; |
+ |
content::NotificationRegistrar registrar_; |
PrefChangeRegistrar pref_change_registrar_; |