| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "shell/crash/crash_upload.h" | 5 #include "shell/crash/crash_upload.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_enumerator.h" | 8 #include "base/files/file_enumerator.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
| 14 #include "mojo/data_pipe_utils/data_pipe_utils.h" | 14 #include "mojo/data_pipe_utils/data_pipe_utils.h" |
| 15 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 15 #include "mojo/services/network/interfaces/url_loader.mojom.h" |
| 16 | 16 |
| 17 namespace breakpad { | 17 namespace breakpad { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 #ifdef NDEBUG | 21 #ifdef NDEBUG |
| 22 const char kCrashUploadURL[] = "https://clients2.google.com/cr/report"; | 22 const char kCrashUploadURL[] = "https://clients2.google.com/cr/report"; |
| 23 #else | 23 #else |
| 24 const char kCrashUploadURL[] = "https://clients2.google.com/cr/staging_report"; | 24 const char kCrashUploadURL[] = "https://clients2.google.com/cr/staging_report"; |
| 25 #endif | 25 #endif |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 scoped_refptr<base::TaskRunner> file_task_runner, | 183 scoped_refptr<base::TaskRunner> file_task_runner, |
| 184 mojo::NetworkServicePtr network_service) { | 184 mojo::NetworkServicePtr network_service) { |
| 185 base::PostTaskAndReplyWithResult( | 185 base::PostTaskAndReplyWithResult( |
| 186 file_task_runner.get(), FROM_HERE, | 186 file_task_runner.get(), FROM_HERE, |
| 187 base::Bind(&GetMinidumpAndBoundary, dumps_path), | 187 base::Bind(&GetMinidumpAndBoundary, dumps_path), |
| 188 base::Bind(&UploadCrash, file_task_runner, | 188 base::Bind(&UploadCrash, file_task_runner, |
| 189 base::Passed(network_service.Pass()), dumps_path)); | 189 base::Passed(network_service.Pass()), dumps_path)); |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace breakpad | 192 } // namespace breakpad |
| OLD | NEW |