diff options
Diffstat (limited to 'chrome/browser/bug_report_data.cc')
| -rw-r--r-- | chrome/browser/bug_report_data.cc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/browser/bug_report_data.cc b/chrome/browser/bug_report_data.cc new file mode 100644 index 0000000..9219e52 --- /dev/null +++ b/chrome/browser/bug_report_data.cc @@ -0,0 +1,34 @@ +// 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. + +#include "chrome/browser/bug_report_data.h" + +#include "chrome/browser/browser.h" + +#if defined(OS_CHROMEOS) +#include "chrome/browser/chromeos/notifications/system_notification.h" +#endif + + + +#if defined(OS_CHROMEOS) +// Called from the same thread as HandleGetDialogDefaults, i.e. the UI thread. +void BugReportData::SyslogsComplete(chromeos::LogDictionaryType* logs, + std::string* zip_content) { + if (sent_report_) { + // We already sent the report, just delete the data. + if (logs) + delete logs; + if (zip_content) + delete zip_content; + } else { + zip_content_ = zip_content; + sys_info_ = logs; // Will get deleted when SendReport() is called. + if (send_sys_info_) { + // We already prepared the report, send it now. + this->SendReport(); + } + } +} +#endif |
