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

Unified Diff: sql/error_delegate_util.cc

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/error_delegate_util.h ('k') | ui/views/controls/message_box_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/error_delegate_util.cc
diff --git a/sql/error_delegate_util.cc b/sql/error_delegate_util.cc
index 37fe006947e0afcd8e8f329d62666fef5b287983..ae856b77eb1addc44bc38316439a12524775e0cf 100644
--- a/sql/error_delegate_util.cc
+++ b/sql/error_delegate_util.cc
@@ -77,4 +77,13 @@ bool IsErrorCatastrophic(int error) {
return false;
}
+std::string GetCorruptFileDiagnosticsInfo(
+ const base::FilePath& corrupted_file_path) {
+ std::string corrupted_file_info("Corrupted file: ");
+ corrupted_file_info +=
+ corrupted_file_path.DirName().BaseName().AsUTF8Unsafe() + "/" +
+ corrupted_file_path.BaseName().AsUTF8Unsafe() + "\n";
+ return corrupted_file_info;
+}
+
} // namespace sql
« no previous file with comments | « sql/error_delegate_util.h ('k') | ui/views/controls/message_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698