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

Unified Diff: chrome/common/logging_chrome.cc

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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/logging_chrome.h ('k') | chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc » ('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 adca73734a85772e04cc5cd6dc42f707e51a4fa9..a85df7285e137e7156153ffbf46023b29fb370ad 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -187,7 +187,7 @@ void RemoveSymlinkAndLog(const base::FilePath& link_path,
} // anonymous namespace
-base::FilePath GetSessionLogFile(const CommandLine& command_line) {
+base::FilePath GetSessionLogDir(const CommandLine& command_line) {
base::FilePath log_dir;
std::string log_dir_str;
scoped_ptr<base::Environment> env(base::Environment::Create());
@@ -210,7 +210,11 @@ base::FilePath GetSessionLogFile(const CommandLine& command_line) {
}
log_dir = log_dir.Append(profile_dir);
}
- return log_dir.Append(GetLogFileName().BaseName());
+ return log_dir;
+}
+
+base::FilePath GetSessionLogFile(const CommandLine& command_line) {
+ return GetSessionLogDir(command_line).Append(GetLogFileName().BaseName());
}
void RedirectChromeLogging(const CommandLine& command_line) {
« no previous file with comments | « chrome/common/logging_chrome.h ('k') | chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698