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

Unified Diff: chrome/browser/chromeos/system_logs/single_log_file_log_source.h

Issue 2956513004: Rename SingleLogSource to SingleLogFileLogSource (Closed)
Patch Set: Rebased Created 3 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/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/system_logs/single_log_file_log_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system_logs/single_log_file_log_source.h
diff --git a/chrome/browser/chromeos/system_logs/single_log_source.h b/chrome/browser/chromeos/system_logs/single_log_file_log_source.h
similarity index 82%
rename from chrome/browser/chromeos/system_logs/single_log_source.h
rename to chrome/browser/chromeos/system_logs/single_log_file_log_source.h
index 1a7c4c99e6d84629083acb6f5c0d6480514c3b55..861c1ed528963eed53f53578376eb0f19063992b 100644
--- a/chrome/browser/chromeos/system_logs/single_log_source.h
+++ b/chrome/browser/chromeos/system_logs/single_log_file_log_source.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_LOG_SOURCE_H_
-#define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_LOG_SOURCE_H_
+#ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_LOG_FILE_LOG_SOURCE_H_
+#define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_LOG_FILE_LOG_SOURCE_H_
#include <stddef.h>
#include <sys/types.h>
@@ -21,7 +21,7 @@ class Time;
namespace system_logs {
// Gathers log data from a single source, possibly incrementally.
-class SingleLogSource : public SystemLogsSource {
+class SingleLogFileLogSource : public SystemLogsSource {
public:
enum class SupportedSource {
// For /var/log/messages.
@@ -34,8 +34,8 @@ class SingleLogSource : public SystemLogsSource {
kAtrusLog,
};
- explicit SingleLogSource(SupportedSource source);
- ~SingleLogSource() override;
+ explicit SingleLogFileLogSource(SupportedSource source);
+ ~SingleLogFileLogSource() override;
// During testing, use this to set a custom Chrome start time to override the
// actual start time. Does not take ownership of |start_time|. Call this again
@@ -46,7 +46,7 @@ class SingleLogSource : public SystemLogsSource {
void Fetch(const SysLogsSourceCallback& callback) override;
private:
- friend class SingleLogSourceTest;
+ friend class SingleLogFileLogSourceTest;
// Returns the full path of the log file.
base::FilePath GetLogFilePath() const;
@@ -85,11 +85,11 @@ class SingleLogSource : public SystemLogsSource {
// For removing PII from log results.
feedback::AnonymizerTool anonymizer_;
- base::WeakPtrFactory<SingleLogSource> weak_ptr_factory_;
+ base::WeakPtrFactory<SingleLogFileLogSource> weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(SingleLogSource);
+ DISALLOW_COPY_AND_ASSIGN(SingleLogFileLogSource);
};
} // namespace system_logs
-#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_LOG_SOURCE_H_
+#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_SINGLE_LOG_FILE_LOG_SOURCE_H_
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/system_logs/single_log_file_log_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698