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

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: Oh noes, the braces 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
« 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 <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 had been Guest before calling or became Guest as a result of this
78 Profile* SetActiveProfileToGuestIfLocked(); 78 // method.
79 bool SetActiveProfileToGuestIfLocked();
79 80
80 } // namespace profiles 81 } // namespace profiles
81 82
82 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 83 #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