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

Unified 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, 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 | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
index 71bb26760cca745856dd24cd348fec85a23ea79b..3ddf69bb6997a28197818f86c564faa0a6be9a4a 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -73,9 +73,10 @@ void UpdateGaiaProfileInfoIfNeeded(Profile* profile);
SigninErrorController* GetSigninErrorController(Profile* profile);
// If the current active profile (given by prefs::kProfileLastUsed) is locked,
-// changes the active profile to the Guest profile and returns it, otherwise
-// returns NULL. This assumes that the Guest profile has been loaded.
-Profile* SetActiveProfileToGuestIfLocked();
+// changes the active profile to the Guest profile. Returns true if the active
+// profile had been Guest before calling or became Guest as a result of this
+// method.
+bool SetActiveProfileToGuestIfLocked();
} // namespace profiles
« 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