Index: sql/error_delegate_util.h |
diff --git a/sql/error_delegate_util.h b/sql/error_delegate_util.h |
index 0c67c07ec7835b83303f9adc306cbe982dc2ed7a..42133216ee9072eed7084f63cde04368709d191a 100644 |
--- a/sql/error_delegate_util.h |
+++ b/sql/error_delegate_util.h |
@@ -5,6 +5,9 @@ |
#ifndef SQL_ERROR_DELEGATE_UTIL_H_ |
#define SQL_ERROR_DELEGATE_UTIL_H_ |
+#include <string> |
+ |
+#include "base/files/file_path.h" |
#include "sql/sql_export.h" |
namespace sql { |
@@ -13,6 +16,15 @@ namespace sql { |
// |error|. |
SQL_EXPORT bool IsErrorCatastrophic(int error); |
+// Gets diagnostic info of the given |corrupted_file_path| that can be appended |
+// to a corrupt database diagnostics info. The file info are not localized as |
+// it's meant to be added to feedback reports and used by developers. |
+// Also the full file path is not appended as it might contain some PII. Instead |
+// only the last two components of the path are appended to distinguish between |
+// default and user profiles. |
+SQL_EXPORT std::string GetCorruptFileDiagnosticsInfo( |
+ const base::FilePath& corrupted_file_path); |
+ |
} // namespace sql |
#endif // SQL_ERROR_DELEGATE_UTIL_H_ |