diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-07 23:07:27 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-07 23:07:27 +0000 |
commit | aa20e0622a945f94958daa1940385c29779d09e4 (patch) | |
tree | 79ba5e11afb6d6edc5a9e4edef95cca4f86467de /chrome/browser/bug_report_data.h | |
parent | 111ca63cacf4cedb65be41fd4cabfa5ad7bb6b86 (diff) | |
download | chromium_src-aa20e0622a945f94958daa1940385c29779d09e4.zip chromium_src-aa20e0622a945f94958daa1940385c29779d09e4.tar.gz chromium_src-aa20e0622a945f94958daa1940385c29779d09e4.tar.bz2 |
Move more code from headers to implementation.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/5624002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68534 0039d316-1c4b-4281-b951-d872f2087c98
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, |