#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/feedback/feedback_util.h"
#include <optional>
#include <string>
#include <vector>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "components/feedback/feedback_report.h"
#include "third_party/zlib/google/zip.h"
namespace {
constexpr char kMultilineIndicatorString[] = …;
constexpr char kMultilineStartString[] = …;
constexpr char kMultilineEndString[] = …;
}
namespace feedback_util {
std::optional<std::string> ZipString(const base::FilePath& filename,
std::string_view data) { … }
std::string LogsToString(const FeedbackCommon::SystemLogsMap& sys_info) { … }
void RemoveUrlsFromAutofillData(std::string& autofill_metadata) { … }
#if !BUILDFLAG(IS_WIN)
std::optional<std::string> ReadEndOfFile(const base::FilePath& path,
size_t max_size) { … }
#endif
}