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

Unified Diff: chrome/common/logging_chrome.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/common/chrome_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/logging_chrome.cc
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc
index ceef7c93b41c6e17cf75d45ad6d3e4c7bfcc3f07..d227270957775b5107146fbd6df379f1c3a82472 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -207,15 +207,15 @@ base::FilePath GetSessionLogFile(const CommandLine& command_line) {
} else if (command_line.HasSwitch(chromeos::switches::kLoginProfile)) {
PathService::Get(chrome::DIR_USER_DATA, &log_dir);
base::FilePath profile_dir;
- if (command_line.HasSwitch(switches::kMultiProfiles)) {
+ std::string login_profile_value =
+ command_line.GetSwitchValueASCII(chromeos::switches::kLoginProfile);
+ if (login_profile_value == chrome::kLegacyProfileDir) {
+ profile_dir = base::FilePath(login_profile_value);
+ } else {
// We could not use g_browser_process > profile_helper() here.
std::string profile_dir_str = chrome::kProfileDirPrefix;
- profile_dir_str.append(
- command_line.GetSwitchValueASCII(chromeos::switches::kLoginProfile));
+ profile_dir_str.append(login_profile_value);
profile_dir = base::FilePath(profile_dir_str);
- } else {
- profile_dir =
- command_line.GetSwitchValuePath(chromeos::switches::kLoginProfile);
}
log_dir = log_dir.Append(profile_dir);
}
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698