Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: shell/crash/crash_upload.cc

Issue 1404443004: Move //mojo/services/network/public/interfaces to //mojo/services/network/interfaces. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add some missing dependencies Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « shell/crash/crash_upload.h ('k') | shell/crash/crash_upload_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « shell/crash/crash_upload.h ('k') | shell/crash/crash_upload_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698