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

Unified Diff: chrome/browser/extensions/api/feedback_private/single_log_source_factory.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
Index: chrome/browser/extensions/api/feedback_private/single_log_source_factory.h
diff --git a/chrome/browser/extensions/api/feedback_private/single_log_source_factory.h b/chrome/browser/extensions/api/feedback_private/single_log_source_factory.h
index 6d7e710a60a31f13cdf2d0db0a5c2abcc852d3e3..feb29436d755455ba321170fe6c2fadf78844980 100644
--- a/chrome/browser/extensions/api/feedback_private/single_log_source_factory.h
+++ b/chrome/browser/extensions/api/feedback_private/single_log_source_factory.h
@@ -8,22 +8,23 @@
#include <memory>
#include "base/callback.h"
-#include "chrome/browser/chromeos/system_logs/single_log_source.h"
+#include "chrome/browser/feedback/system_logs/system_logs_fetcher.h"
+#include "chrome/common/extensions/api/feedback_private.h"
namespace extensions {
-// Provides a way to override the creation of a new SingleLogSource during
+// Provides a way to override the creation of a new Single*LogSource during
// testing.
class SingleLogSourceFactory {
public:
using CreateCallback =
- base::Callback<std::unique_ptr<system_logs::SingleLogSource>(
- system_logs::SingleLogSource::SupportedSource)>;
+ base::Callback<std::unique_ptr<system_logs::SystemLogsSource>(
+ api::feedback_private::LogSource)>;
- // Returns a SingleLogSource with source type of |type|. The caller must take
- // ownership of the returned object.
- static std::unique_ptr<system_logs::SingleLogSource> CreateSingleLogSource(
- system_logs::SingleLogSource::SupportedSource type);
+ // Returns a Single*LogSource with source type corresponding to |type|. The
+ // caller must takeownership of the returned object.
+ static std::unique_ptr<system_logs::SystemLogsSource> CreateSingleLogSource(
+ api::feedback_private::LogSource type);
// Pass in a callback that gets executed instead of the default behavior of
// CreateSingleLogSource. Does not take ownership of |callback|. When done

Powered by Google App Engine
This is Rietveld 408576698