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

Unified Diff: chrome/common/logging_chrome.cc

Issue 2893313003: Add a switch to prevent logging redirection on chromeos. (Closed)
Patch Set: Created 3 years, 7 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
« chrome/common/chrome_switches.h ('K') | « chrome/common/chrome_switches.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 4e2df8c8efdf47d8b3ab16953696495eaf4d7c70..d88677508f5de04f57502c31b8e31453c91872ae 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -229,6 +229,9 @@ base::FilePath GetSessionLogFile(const base::CommandLine& command_line) {
}
void RedirectChromeLogging(const base::CommandLine& command_line) {
sky 2017/05/23 17:35:31 AFAICT this function is only used in chromeos. Cod
achuithb 2017/05/25 19:36:41 Done.
+ if (command_line.HasSwitch(switches::kDisableLoggingRedirect))
+ return;
+
if (chrome_logging_redirected_) {
// TODO(nkostylev): Support multiple active users. http://crbug.com/230345
LOG(WARNING) << "NOT redirecting logging for multi-profiles case.";
« chrome/common/chrome_switches.h ('K') | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698