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

Unified Diff: chrome/common/logging_chrome.cc

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/common/logging_chrome.cc
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc
index 909587355302e388755ff5719ee075a9c3f75192..c9bdc28e37f3a7f9f3dd2f4ba360e8c19946ecd1 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -216,6 +216,13 @@ base::FilePath GetSessionLogFile(const CommandLine& command_line) {
}
void RedirectChromeLogging(const CommandLine& command_line) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles) &&
+ chrome_logging_redirected_) {
+ // TODO(nkostylev): Support multiple active users.
+ LOG(ERROR) << "NOT redirecting logging for multi-profiles case.";
+ return;
+ }
+
DCHECK(!chrome_logging_redirected_) <<
"Attempted to redirect logging when it was already initialized.";

Powered by Google App Engine
This is Rietveld 408576698