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

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

Issue 2956513004: Rename SingleLogSource to SingleLogFileLogSource (Closed)
Patch Set: Simplify aliases; revert unintended IDL change Created 3 years, 6 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
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 5b66b606bac37a30e3042f09453f10cb6de0a5f1..5998299cc0ea06a7b5a4e91877a086e49edc53e9 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>
@@ -20,7 +20,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.
@@ -33,8 +33,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
@@ -45,7 +45,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;
@@ -84,11 +84,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_

Powered by Google App Engine
This is Rietveld 408576698