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

Unified Diff: chrome/browser/bug_report_data.cc

Issue 5624002: Move more code from headers to implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 10 years 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
Index: chrome/browser/bug_report_data.cc
diff --git a/chrome/browser/bug_report_data.cc b/chrome/browser/bug_report_data.cc
index c277d88c67c883cbadc3176f246b208626b4a66f..a0d97729ac515c38ca107ac4e8f9245353e49591 100644
--- a/chrome/browser/bug_report_data.cc
+++ b/chrome/browser/bug_report_data.cc
@@ -10,6 +10,43 @@
#include "chrome/browser/chromeos/notifications/system_notification.h"
#endif
+BugReportData::BugReportData()
+ : profile_(NULL),
+ problem_type_(0)
+#if defined(OS_CHROMEOS)
+ , sent_report_(false), send_sys_info_(false)
+#endif
+{
+}
+
+BugReportData::~BugReportData() {}
+
+void BugReportData::UpdateData(Profile* profile,
+ const std::string& target_tab_url,
+ const string16& target_tab_title,
+ const int problem_type,
+ const std::string& page_url,
+ const std::string& description,
+ const std::vector<unsigned char>& image
+#if defined(OS_CHROMEOS)
+ , const std::string& user_email
+ , const bool send_sys_info
+ , const bool sent_report
+#endif
+ ) {
+ profile_ = profile;
+ target_tab_url_ = target_tab_url;
+ target_tab_title_ = target_tab_title;
+ problem_type_ = problem_type;
+ page_url_ = page_url;
+ description_ = description;
+ image_ = image;
+#if defined(OS_CHROMEOS)
+ user_email_ = user_email;
+ send_sys_info_ = send_sys_info;
+ sent_report_ = sent_report;
+#endif
+}
#if defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698