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

Unified Diff: chrome/browser/profiles/profile.h

Issue 847733005: Move User Manager onto a System profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « chrome/browser/app_controller_mac_browsertest.mm ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 45761ee2fb2c7fec46337d22fd3428f5ae5b1814..d7a60ce815ddfb20fe7f91012013cc63b6608e1a 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -322,6 +322,9 @@ class Profile : public content::BrowserContext {
// Returns whether it is a guest session.
virtual bool IsGuestSession() const;
+ // Returns whether it is a system profile.
+ virtual bool IsSystemProfile() const;
+
// Did the user restore the last session? This is set by SessionRestore.
void set_restored_last_session(bool restored_last_session) {
restored_last_session_ = restored_last_session;
@@ -384,6 +387,10 @@ class Profile : public content::BrowserContext {
is_guest_profile_ = is_guest_profile;
}
+ void set_is_system_profile(bool is_system_profile) {
+ is_system_profile_ = is_system_profile;
+ }
+
private:
bool restored_last_session_;
@@ -399,6 +406,9 @@ class Profile : public content::BrowserContext {
bool is_guest_profile_;
+ // A non-browsing profile not associated to a user. Sample use: User-Manager.
+ bool is_system_profile_;
+
DISALLOW_COPY_AND_ASSIGN(Profile);
};
« no previous file with comments | « chrome/browser/app_controller_mac_browsertest.mm ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698