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

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

Issue 13778004: Start in elevated mode when creating a new managed user profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nit. Created 7 years, 8 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 | « no previous file | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698