diff options
Diffstat (limited to 'chrome/browser/bug_report_data.h')
-rw-r--r-- | chrome/browser/bug_report_data.h | 44 |
1 files changed, 13 insertions, 31 deletions
diff --git a/chrome/browser/bug_report_data.h b/chrome/browser/bug_report_data.h index 7752350..2c3a6dd 100644 --- a/chrome/browser/bug_report_data.h +++ b/chrome/browser/bug_report_data.h @@ -1,10 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// Author: rkc@google.com (Rahul Chaturvedi) +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. #ifndef CHROME_BROWSER_BUG_REPORT_DATA_H_ #define CHROME_BROWSER_BUG_REPORT_DATA_H_ - #include <string> #include <vector> @@ -23,43 +23,25 @@ class BugReportData { // don't want it to send the report either - this will make sure that if // SyslogsComplete gets called before UpdateData, we'll simply populate the // sys_info and zip_content fields and exit without disturbing anything else - BugReportData() : profile_(NULL), - problem_type_(0) -#if defined(OS_CHROMEOS) - , sent_report_(false), send_sys_info_(false) -#endif - { - } + BugReportData(); + ~BugReportData(); // Defined in bug_report_ui.cc void SendReport(); - void 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 + void 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) void SyslogsComplete(chromeos::LogDictionaryType* logs, |