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

Unified Diff: chrome/browser/chromeos/logging.cc

Issue 2893313003: Add a switch to prevent logging redirection on chromeos. (Closed)
Patch Set: Fix include 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/logging.cc
diff --git a/chrome/browser/chromeos/logging.cc b/chrome/browser/chromeos/logging.cc
index 41a13020541543ce6b5778edd4f79c2f82df3393..5cf1d0de72732f2a525e4350b91369aeb352b87a 100644
--- a/chrome/browser/chromeos/logging.cc
+++ b/chrome/browser/chromeos/logging.cc
@@ -9,6 +9,7 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/task_scheduler/post_task.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/logging_chrome.h"
#include "content/public/browser/browser_thread.h"
@@ -51,8 +52,8 @@ void RedirectChromeLogging(const base::CommandLine& command_line) {
return;
}
- DCHECK(!chrome_logging_redirected_)
- << "Attempted to redirect logging when it was already initialized.";
+ if (command_line.HasSwitch(switches::kDisableLoggingRedirect))
+ return;
// Redirect logs to the session log directory, if set. Otherwise
// defaults to the profile dir.
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698