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

Side by Side Diff: chrome/browser/tracing/crash_service_uploader.cc

Issue 2028043002: tracing: restructure to the components/tracing folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/tracing/crash_service_uploader.h" 5 #include "chrome/browser/tracing/crash_service_uploader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "components/tracing/tracing_switches.h" 20 #include "components/tracing/common/tracing_switches.h"
21 #include "components/version_info/version_info.h" 21 #include "components/version_info/version_info.h"
22 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
23 #include "content/public/common/content_switches.h" 23 #include "content/public/common/content_switches.h"
24 #include "net/base/mime_util.h" 24 #include "net/base/mime_util.h"
25 #include "net/base/network_delegate.h" 25 #include "net/base/network_delegate.h"
26 #include "net/proxy/proxy_config.h" 26 #include "net/proxy/proxy_config.h"
27 #include "net/proxy/proxy_config_service.h" 27 #include "net/proxy/proxy_config_service.h"
28 #include "net/url_request/url_fetcher.h" 28 #include "net/url_request/url_fetcher.h"
29 #include "net/url_request/url_request_context.h" 29 #include "net/url_request/url_request_context.h"
30 #include "net/url_request/url_request_context_builder.h" 30 #include "net/url_request/url_request_context_builder.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 std::string content_type = kUploadContentType; 302 std::string content_type = kUploadContentType;
303 content_type.append("; boundary="); 303 content_type.append("; boundary=");
304 content_type.append(kMultipartBoundary); 304 content_type.append(kMultipartBoundary);
305 305
306 url_fetcher_ = 306 url_fetcher_ =
307 net::URLFetcher::Create(GURL(upload_url), net::URLFetcher::POST, this); 307 net::URLFetcher::Create(GURL(upload_url), net::URLFetcher::POST, this);
308 url_fetcher_->SetRequestContext(request_context_); 308 url_fetcher_->SetRequestContext(request_context_);
309 url_fetcher_->SetUploadData(content_type, post_data); 309 url_fetcher_->SetUploadData(content_type, post_data);
310 url_fetcher_->Start(); 310 url_fetcher_->Start();
311 } 311 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698