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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 13633003: Part of multiprofile implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index f95ab4f82ce480b203cc926220fbabb9f329ff37..8f6901cfa4b7bbcf939f1cdfdace8b1a84c3897c 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -224,6 +224,21 @@ Profile* ProfileManager::GetDefaultProfileOrOffTheRecord() {
return profile;
}
+#if defined(OS_CHROMEOS)
+Profile* ProfileManager::GetSigninProfile(
+ const base::FilePath& user_data_dir) {
+ base::FilePath signin_profile_dir =
+ user_data_dir.AppendASCII(chrome::kInitialProfile);
+ return GetProfile(signin_profile_dir)->GetOffTheRecordProfile();
+}
+
+// static
+Profile* ProfileManager::GetSigninProfile() {
+ ProfileManager* profile_manager = g_browser_process->profile_manager();
+ return profile_manager->GetSigninProfile(profile_manager->user_data_dir_);
+}
+#endif
+
// static
Profile* ProfileManager::GetLastUsedProfile() {
ProfileManager* profile_manager = g_browser_process->profile_manager();
« chrome/browser/profiles/profile_manager.h ('K') | « chrome/browser/profiles/profile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698