#include "remoting/host/crash_process.h"
#include "base/debug/alias.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/string_util.h"
namespace remoting {
void CrashProcess(const base::Location& location) {
CrashProcess(location.function_name(), location.file_name(),
location.line_number());
}
void CrashProcess(const std::string& function_name,
const std::string& file_name,
int line_number) {
char message[1024];
base::snprintf(message, sizeof(message), "Requested by %s at %s, line %d.",
function_name.c_str(), file_name.c_str(), line_number);
base::debug::Alias(message);
NOTREACHED() << message;
}
}