diff options
author | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 05:45:26 +0000 |
---|---|---|
committer | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 05:45:26 +0000 |
commit | 862066288bfa2871c36e3ab794fb7f6819a5cdfd (patch) | |
tree | 7edbca6eb7696507b772cf8c73ac7b549eec36d4 /chrome/browser/bug_report_util.h | |
parent | 639e99c45b2e5b476c58847153133a91f2aec164 (diff) | |
download | chromium_src-862066288bfa2871c36e3ab794fb7f6819a5cdfd.zip chromium_src-862066288bfa2871c36e3ab794fb7f6819a5cdfd.tar.gz chromium_src-862066288bfa2871c36e3ab794fb7f6819a5cdfd.tar.bz2 |
Commiting http://codereview.chromium.org/2017007/show on behalf of rkc@chromium.org.
This change hooks issue report dialog with Google Feedback backend for ChromeOS.
The dialog is going to be used only for Chrome OS at the moment, the previous mechanism is kept intact for other operating systems.
Image and System Info reporting is disabled at the moment; for image, we need
feedback to get their changes in production, for reporting, the system scripts
need to be added (basic Chrome and OS version info is being sent with the report)
BUG=chromium-os:2761
TEST=none, work in progress
TBR=zelidrag
Review URL: http://codereview.chromium.org/2068004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bug_report_util.h')
-rw-r--r-- | chrome/browser/bug_report_util.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/chrome/browser/bug_report_util.h b/chrome/browser/bug_report_util.h index aef1760..a56d4e1 100644 --- a/chrome/browser/bug_report_util.h +++ b/chrome/browser/bug_report_util.h @@ -15,6 +15,11 @@ #endif #include "base/scoped_ptr.h" +#include "chrome/browser/userfeedback/proto/common.pb.h" +#include "chrome/browser/userfeedback/proto/extension.pb.h" +#include "chrome/browser/userfeedback/proto/math.pb.h" +#include "gfx/rect.h" + class Profile; class TabContents; @@ -44,26 +49,28 @@ class BugReportUtil { // Generates bug report data. static void SendReport(Profile* profile, - std::string page_title_text, + const std::string& page_title_text, int problem_type, - std::string page_url_text, - std::string description, + const std::string& page_url_text, + const std::string& description, const char* png_data, - int png_data_length); + int png_data_length, + int png_width, + int png_height); // Redirects the user to Google's phishing reporting page. static void ReportPhishing(TabContents* currentTab, const std::string& phishing_url); - static std::string GetMimeType(); - class PostCleanup; private: - static void CreateMimeBoundary(std::string *out); + // Add a key value pair to the feedback object + static void AddFeedbackData( + userfeedback::ExternalExtensionSubmit* feedback_data, + const std::string& key, const std::string& value); DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); }; #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ - |