blob: afe5d05406ffb4daf2a3226adba3cd2cab39e87f [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/shell/browser/system_logs/shell_system_logs_fetcher.h"
#include "components/feedback/system_logs/system_logs_fetcher.h"
#include "extensions/shell/browser/system_logs/log_sources/basic_log_source.h"
namespace system_logs {
SystemLogsFetcher* BuildShellSystemLogsFetcher(
content::BrowserContext* browser_context) {
// Deletes itself after Fetch() is completes.
SystemLogsFetcher* fetcher = new SystemLogsFetcher(true /* scrub_data */);
fetcher->AddSource(std::make_unique<BasicLogSource>(browser_context));
return fetcher;
}
} // namespace system_logs