| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/media/webrtc_log_uploader.h" | 5 #include "chrome/browser/media/webrtc_log_uploader.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | |
| 8 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
| 9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/media/webrtc_log_list.h" | 17 #include "chrome/browser/media/webrtc_log_list.h" |
| 18 #include "chrome/browser/media/webrtc_log_util.h" | 18 #include "chrome/browser/media/webrtc_log_util.h" |
| 19 #include "chrome/common/chrome_version_info.h" | 19 #include "chrome/common/chrome_version_info.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 if (!success) { | 454 if (!success) { |
| 455 error_message = "Uploading failed, response code: " + | 455 error_message = "Uploading failed, response code: " + |
| 456 base::IntToString(response_code); | 456 base::IntToString(response_code); |
| 457 } | 457 } |
| 458 content::BrowserThread::PostTask( | 458 content::BrowserThread::PostTask( |
| 459 content::BrowserThread::UI, FROM_HERE, | 459 content::BrowserThread::UI, FROM_HERE, |
| 460 base::Bind(upload_done_data.callback, success, report_id, | 460 base::Bind(upload_done_data.callback, success, report_id, |
| 461 error_message)); | 461 error_message)); |
| 462 } | 462 } |
| 463 } | 463 } |
| OLD | NEW |