void CrashReporter::Start(const std::string& product_name,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_path,
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler,
const StringMap& extra_parameters) {
SetUploadParameters(extra_parameters);
InitBreakpad(product_name, ATOM_VERSION_STRING, company_name, submit_url,
- temp_path, auto_submit, skip_system_crash_handler);
+ temp_dir, auto_submit, skip_system_crash_handler);
}
base::FilePath CrashReporter::GetCrashesDirectory(
std::vector<CrashReporter::UploadReportResult>
CrashReporter::GetUploadedReports(const std::string& product_name,
- const std::string& temp_path) {
+ const std::string& temp_dir) {
std::vector<CrashReporter::UploadReportResult> result;
base::FilePath uploads_path =
- GetCrashesDirectory(product_name, temp_path).Append("uploads.log");
+ GetCrashesDirectory(product_name, temp_dir).Append("uploads.log");
std::string file_content;
if (base::ReadFileToString(uploads_path, &file_content)) {
std::vector<std::string> reports = base::SplitString(
const std::string& version,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_path,
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler) {
}
void Start(const std::string& product_name,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_path,
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler,
const StringMap& extra_parameters);
virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
const std::string& product_name,
- const std::string& temp_path);
+ const std::string& temp_dir);
base::FilePath GetCrashesDirectory(const std::string& product_name,
const std::string& temp_dir);
const std::string& version,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_path,
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler);
virtual void SetUploadParameters();
const std::string& version,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_path,
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler) override;
void SetUploadParameters() override;
const base::StringPiece& value);
std::vector<UploadReportResult> GetUploadedReports(
- const std::string& path, const std::string& temp_path) override;
+ const std::string& path, const std::string& temp_dir) override;
std::unique_ptr<crashpad::SimpleStringDictionary> simple_string_dictionary_;
std::vector<CrashReporter::UploadReportResult>
CrashReporterMac::GetUploadedReports(const std::string& product_name,
- const std::string& temp_path) {
+ const std::string& temp_dir) {
std::vector<CrashReporter::UploadReportResult> uploaded_reports;
- base::FilePath file_path = GetCrashesDirectory(product_name, temp_path);
+ base::FilePath file_path = GetCrashesDirectory(product_name, temp_dir);
if (!base::PathExists(file_path)) {
return uploaded_reports;
}
const std::string& version,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_path,
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler) {
skip_system_crash_handler_ = skip_system_crash_handler;
breakpad_.reset();
breakpad_.reset(new google_breakpad::ExceptionHandler(
- temp_path,
+ temp_dir,
FilterCallback,
MinidumpCallback,
this,
const std::string& version,
const std::string& company_name,
const std::string& submit_url,
- const std::string& temp_dir
+ const std::string& temp_dir,
bool auto_submit,
bool skip_system_crash_handler) override;
void SetUploadParameters() override;
const args = [
'--reporter-url=' + submitURL,
'--application-name=' + this.productName,
- '--crashes-directory=' + bindings._getCrashesDirectory(this.productName, this.tempDirectory),
+ '--crashes-directory=' + binding._getCrashesDirectory(this.productName, this.tempDirectory),
'--v=1'
]
const env = {