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

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

Issue 885493005: Setting Guest last-active for the User Manager doesn't create the Guest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac UserManager asyncly creates Guest for Controller Created 5 years, 10 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
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 <vector> 8 #include <vector>
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // If the --google-profile-info flag is turned on, starts an update for a new 66 // If the --google-profile-info flag is turned on, starts an update for a new
67 // version of the Gaia profile picture and other profile info. 67 // version of the Gaia profile picture and other profile info.
68 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); 68 void UpdateGaiaProfileInfoIfNeeded(Profile* profile);
69 69
70 // Returns the sign-in error controller for the given profile. Some profiles, 70 // Returns the sign-in error controller for the given profile. Some profiles,
71 // like guest profiles, may not have a controller so this function may return 71 // like guest profiles, may not have a controller so this function may return
72 // NULL. 72 // NULL.
73 SigninErrorController* GetSigninErrorController(Profile* profile); 73 SigninErrorController* GetSigninErrorController(Profile* profile);
74 74
75 // If the current active profile (given by prefs::kProfileLastUsed) is locked, 75 // If the current active profile (given by prefs::kProfileLastUsed) is locked,
76 // changes the active profile to the Guest profile and returns it, otherwise 76 // changes the active profile to the Guest profile. Returns true if the active
77 // returns NULL. This assumes that the Guest profile has been loaded. 77 // profile is now guest.
noms (inactive) 2015/01/29 16:15:13 Hmm, this comment is a bit confusing. Why wouldn't
Mike Lerman 2015/01/29 16:51:40 Done.
78 Profile* SetActiveProfileToGuestIfLocked(); 78 bool SetActiveProfileToGuestIfLocked();
79 79
80 } // namespace profiles 80 } // namespace profiles
81 81
82 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 82 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | chrome/browser/profiles/profiles_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698