| OLD | NEW |
| 1 // Copyright 2010 Google Inc. All Rights Reserved. | 1 // Copyright 2010 Google Inc. All Rights Reserved. |
| 2 // Author: rkc@google.com (Rahul Chaturvedi) | 2 // Author: rkc@google.com (Rahul Chaturvedi) |
| 3 | 3 |
| 4 #ifndef CHROME_BROWSER_BUG_REPORT_DATA_H_ | 4 #ifndef CHROME_BROWSER_BUG_REPORT_DATA_H_ |
| 5 #define CHROME_BROWSER_BUG_REPORT_DATA_H_ | 5 #define CHROME_BROWSER_BUG_REPORT_DATA_H_ |
| 6 | 6 |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/bug_report_util.h" | 12 #include "chrome/browser/bug_report_util.h" |
| 13 | 13 |
| 14 #if defined(OS_CHROMEOS) | 14 #if defined(OS_CHROMEOS) |
| 15 #include "chrome/browser/chromeos/cros/syslogs_library.h" | 15 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 class BugReportData { | 18 class BugReportData { |
| 19 public: | 19 public: |
| 20 // Make sure we initialize these flags to false since SyslogsComplete | 20 // Make sure we initialize these flags to false since SyslogsComplete |
| 21 // may be triggered before we've called update data; in which case, | 21 // may be triggered before we've called update data; in which case, |
| 22 // we do not want it to just delete the logs it just gathered, and we | 22 // we do not want it to just delete the logs it just gathered, and we |
| 23 // don't want it to send the report either - this will make sure that if | 23 // don't want it to send the report either - this will make sure that if |
| 24 // SyslogsComplete gets called before UpdateData, we'll simply populate the | 24 // SyslogsComplete gets called before UpdateData, we'll simply populate the |
| 25 // sys_info and zip_content fields and exit without disturbing anything else | 25 // sys_info and zip_content fields and exit without disturbing anything else |
| 26 BugReportData() : profile_(NULL) | 26 BugReportData() : profile_(NULL), |
| 27 problem_type_(0) |
| 27 #if defined(OS_CHROMEOS) | 28 #if defined(OS_CHROMEOS) |
| 28 , sent_report_(false), send_sys_info_(false) | 29 , sent_report_(false), send_sys_info_(false) |
| 29 #endif | 30 #endif |
| 30 { | 31 { |
| 31 } | 32 } |
| 32 | 33 |
| 33 // Defined in bug_report_ui.cc | 34 // Defined in bug_report_ui.cc |
| 34 void SendReport(); | 35 void SendReport(); |
| 35 | 36 |
| 36 void UpdateData(Profile* profile | 37 void UpdateData(Profile* profile |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 std::string* zip_content_; | 103 std::string* zip_content_; |
| 103 // NOTE: Extra boolean sent_report_ is required because callback may | 104 // NOTE: Extra boolean sent_report_ is required because callback may |
| 104 // occur before or after we call SendReport(). | 105 // occur before or after we call SendReport(). |
| 105 bool sent_report_; | 106 bool sent_report_; |
| 106 // Flag to indicate to SyslogsComplete that it should send the report | 107 // Flag to indicate to SyslogsComplete that it should send the report |
| 107 bool send_sys_info_; | 108 bool send_sys_info_; |
| 108 #endif | 109 #endif |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 #endif // CHROME_BROWSER_BUG_REPORT_DATA_H_ | 112 #endif // CHROME_BROWSER_BUG_REPORT_DATA_H_ |
| OLD | NEW |