Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: sql/error_delegate_util.h

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting's & droger's Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sql/connection.cc ('k') | sql/error_delegate_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « sql/connection.cc ('k') | sql/error_delegate_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698