This source file includes following definitions.
- Create
#include "chrome/browser/crash_upload_list.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "chrome/common/chrome_paths.h"
#if defined(OS_WIN)
#include "chrome/browser/crash_upload_list_win.h"
#endif
const char* CrashUploadList::kReporterLogFilename = "uploads.log";
CrashUploadList* CrashUploadList::Create(Delegate* delegate) {
base::FilePath crash_dir_path;
PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path);
base::FilePath upload_log_path =
crash_dir_path.AppendASCII(kReporterLogFilename);
#if defined(OS_WIN)
return new CrashUploadListWin(delegate, upload_log_path);
#else
return new CrashUploadList(delegate, upload_log_path);
#endif
}
CrashUploadList::CrashUploadList(Delegate* delegate,
const base::FilePath& upload_log_path)
: UploadList(delegate, upload_log_path) {}
CrashUploadList::~CrashUploadList() {}