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

Side by Side 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: sky's comments 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/connection.cc ('k') | sql/error_delegate_util.cc » ('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 #ifndef SQL_ERROR_DELEGATE_UTIL_H_ 5 #ifndef SQL_ERROR_DELEGATE_UTIL_H_
6 #define SQL_ERROR_DELEGATE_UTIL_H_ 6 #define SQL_ERROR_DELEGATE_UTIL_H_
7 7
8 #include <string>
9
10 #include "base/files/file_path.h"
8 #include "sql/sql_export.h" 11 #include "sql/sql_export.h"
9 12
10 namespace sql { 13 namespace sql {
11 14
12 // Returns true if it is highly unlikely that the database can recover from 15 // Returns true if it is highly unlikely that the database can recover from
13 // |error|. 16 // |error|.
14 SQL_EXPORT bool IsErrorCatastrophic(int error); 17 SQL_EXPORT bool IsErrorCatastrophic(int error);
15 18
19 // Appends diagnostic info of the given |corrupted_file_path| to the given
20 // |diagnostics|. The appended info are not localized as it's meant to be added
21 // to feedback reports and used by developers.
22 // Also the full file path is not appended as it might contain some PII. Instead
23 // only the last two components of the path are appended to distinguish between
24 // default and user profiles.
25 SQL_EXPORT void AppendCorruptFileInfoToDiagnostics(
sky 2016/08/03 23:36:18 Sorry, one question, can you clarify why this has
afakhry 2016/08/04 18:01:31 Done.
26 const base::FilePath& corrupted_file_path,
27 std::string* diagnostics);
28
16 } // namespace sql 29 } // namespace sql
17 30
18 #endif // SQL_ERROR_DELEGATE_UTIL_H_ 31 #endif // SQL_ERROR_DELEGATE_UTIL_H_
OLDNEW
« 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