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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper.cc

Issue 23967015: Use multi-profile mount point by default after browser crash and in Guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ProfileManagerTest,InputMethodPersistenceTest Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/profiles/profile_helper.cc
diff --git a/chrome/browser/chromeos/profiles/profile_helper.cc b/chrome/browser/chromeos/profiles/profile_helper.cc
index 3dd0819a6deb8b085fc8203172eaf0cf8bb74ac5..7edb6690512fed900f84e49d8fa759679cbabefc 100644
--- a/chrome/browser/chromeos/profiles/profile_helper.cc
+++ b/chrome/browser/chromeos/profiles/profile_helper.cc
@@ -118,8 +118,13 @@ void ProfileHelper::ProfileStartup(Profile* profile, bool process_startup) {
}
base::FilePath ProfileHelper::GetActiveUserProfileDir() {
- DCHECK(!active_user_id_hash_.empty());
- return base::FilePath(chrome::kProfileDirPrefix + active_user_id_hash_);
+ return GetUserProfileDir(active_user_id_hash_);
+}
+
+base::FilePath ProfileHelper::GetUserProfileDir(
+ const std::string& user_id_hash) {
+ DCHECK(!user_id_hash.empty());
+ return base::FilePath(chrome::kProfileDirPrefix + user_id_hash);
}
void ProfileHelper::Initialize() {
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698