| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |