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

Side by Side Diff: chrome/browser/profiles/profiles_state.h

Issue 2325643003: Disables user manager actions only if there is at least one regular profile and they're all locked. (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void SetFastUserSwitchingTutorialDismissedState(bool dismissed); 97 void SetFastUserSwitchingTutorialDismissedState(bool dismissed);
98 98
99 // Returns true if the right-click user switching tutorial was previously 99 // Returns true if the right-click user switching tutorial was previously
100 // dismissed by a user, false otherwise. 100 // dismissed by a user, false otherwise.
101 bool GetFastUserSwitchingTutorialDismissedState(); 101 bool GetFastUserSwitchingTutorialDismissedState();
102 102
103 // Sets the last used profile pref to |profile_dir|, unless |profile_dir| is the 103 // Sets the last used profile pref to |profile_dir|, unless |profile_dir| is the
104 // System Profile directory, which is an invalid last used profile. 104 // System Profile directory, which is an invalid last used profile.
105 void SetLastUsedProfile(const std::string& profile_dir); 105 void SetLastUsedProfile(const std::string& profile_dir);
106 106
107 // Returns true if all non-supervised and non-child profiles are locked. 107 // Returns true if there exists at least one non-supervised or non-child profile
108 // and they are all locked.
108 bool AreAllProfilesLocked(); 109 bool AreAllProfilesLocked();
anthonyvd 2016/09/08 14:27:54 nit: can this be renamed to something more descrip
Moe 2016/09/08 17:37:03 Done.
109 110
110 } // namespace profiles 111 } // namespace profiles
111 112
112 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 113 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698