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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sql/error_delegate_util.h" 5 #include "sql/error_delegate_util.h"
6 6
7 #include "third_party/sqlite/sqlite3.h" 7 #include "third_party/sqlite/sqlite3.h"
8 8
9 namespace sql { 9 namespace sql {
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 case SQLITE_FORMAT: 70 case SQLITE_FORMAT:
71 case SQLITE_RANGE: 71 case SQLITE_RANGE:
72 case SQLITE_ROW: 72 case SQLITE_ROW:
73 // None of these appear in error reports, so for now let's not try to 73 // None of these appear in error reports, so for now let's not try to
74 // guess at how to handle them. 74 // guess at how to handle them.
75 return false; 75 return false;
76 } 76 }
77 return false; 77 return false;
78 } 78 }
79 79
80 std::string GetCorruptFileDiagnosticsInfo(
81 const base::FilePath& corrupted_file_path) {
82 std::string corrupted_file_info("Corrupted file: ");
83 corrupted_file_info +=
84 corrupted_file_path.DirName().BaseName().AsUTF8Unsafe() + "/" +
85 corrupted_file_path.BaseName().AsUTF8Unsafe() + "\n";
86 return corrupted_file_info;
87 }
88
80 } // namespace sql 89 } // namespace sql
OLDNEW
« 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