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

Unified Diff: chrome/browser/bug_report_data.cc

Issue 7635017: Fix saved screenshots for feedback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac fix 4 Created 9 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 | « chrome/browser/bug_report_data.h ('k') | chrome/browser/bug_report_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bug_report_data.cc
diff --git a/chrome/browser/bug_report_data.cc b/chrome/browser/bug_report_data.cc
index 4fccd796e73c07fac318ff047c5acc7fee5745da..2311b0461f4036a71e6a0d4dc71391b6a37af767 100644
--- a/chrome/browser/bug_report_data.cc
+++ b/chrome/browser/bug_report_data.cc
@@ -30,7 +30,7 @@ void BugReportData::UpdateData(Profile* profile,
const int problem_type,
const std::string& page_url,
const std::string& description,
- const std::vector<unsigned char>& image
+ ScreenshotDataPtr image
#if defined(OS_CHROMEOS)
, const std::string& user_email
, const bool send_sys_info
@@ -61,16 +61,12 @@ void BugReportData::SendReport() {
sent_report_ = true;
#endif
- int image_data_size = image_.size();
- char* image_data = image_data_size ?
- reinterpret_cast<char*>(&(image_.front())) : NULL;
gfx::Rect& screen_size = BugReportUtil::GetScreenshotSize();
BugReportUtil::SendReport(profile_
, problem_type_
, page_url_
, description_
- , image_data
- , image_data_size
+ , image_
, screen_size.width()
, screen_size.height()
#if defined(OS_CHROMEOS)
« no previous file with comments | « chrome/browser/bug_report_data.h ('k') | chrome/browser/bug_report_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698