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

Unified Diff: chrome/common/logging_chrome.cc

Issue 13671005: Re-apply 192420: Move login switches to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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_switches.cc ('k') | chromeos/chromeos_switches.h » ('j') | 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 896cc7bc7f1b53b114ec9a6df8891f8503a7550f..909587355302e388755ff5719ee075a9c3f75192 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -51,6 +51,10 @@
#include "chrome/common/env_vars.h"
#include "ipc/ipc_logging.h"
+#if defined(OS_CHROMEOS)
+#include "chromeos/chromeos_switches.h"
+#endif
+
#if defined(OS_WIN)
#include <initguid.h>
#include "base/logging_win.h"
@@ -205,7 +209,7 @@ base::FilePath GetSessionLogFile(const CommandLine& command_line) {
} else {
PathService::Get(chrome::DIR_USER_DATA, &log_dir);
base::FilePath login_profile =
- command_line.GetSwitchValuePath(switches::kLoginProfile);
+ command_line.GetSwitchValuePath(chromeos::switches::kLoginProfile);
log_dir = log_dir.Append(login_profile);
}
return log_dir.Append(GetLogFileName().BaseName());
@@ -268,7 +272,7 @@ void InitChromeLogging(const CommandLine& command_line,
// For BWSI (Incognito) logins, we want to put the logs in the user
// profile directory that is created for the temporary session instead
// of in the system log directory, for privacy reasons.
- if (command_line.HasSwitch(switches::kGuestSession))
+ if (command_line.HasSwitch(chromeos::switches::kGuestSession))
log_path = GetSessionLogFile(command_line);
// On ChromeOS we log to the symlink. We force creation of a new
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698