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

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

Issue 585653002: After locking a profile and showing the User Manager, make Guest the active profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments + rebase Created 6 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // If the --google-profile-info flag is turned on, starts an update for a new 62 // If the --google-profile-info flag is turned on, starts an update for a new
63 // version of the Gaia profile picture. 63 // version of the Gaia profile picture.
64 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); 64 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile);
65 65
66 // Returns the sign-in error controller for the given profile. Some profiles, 66 // Returns the sign-in error controller for the given profile. Some profiles,
67 // like guest profiles, may not have a controller so this function may return 67 // like guest profiles, may not have a controller so this function may return
68 // NULL. 68 // NULL.
69 SigninErrorController* GetSigninErrorController(Profile* profile); 69 SigninErrorController* GetSigninErrorController(Profile* profile);
70 70
71 // If the current active profile (given by prefs::kProfileLastUsed) is locked,
72 // changes the active profile to the Guest profile and returns it, otherwise
73 // returns NULL. This assumes that the Guest profile has been loaded.
74 Profile* SetActiveProfileToGuestIfLocked();
75
71 } // namespace profiles 76 } // namespace profiles
72 77
73 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 78 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698