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

Unified Diff: chrome/browser/tracing/crash_service_uploader.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tracing/crash_service_uploader.h ('k') | chrome/browser/tracing/navigation_tracing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tracing/crash_service_uploader.cc
diff --git a/chrome/browser/tracing/crash_service_uploader.cc b/chrome/browser/tracing/crash_service_uploader.cc
index d34249efe32ec92c0a7dbeee0b47f98217cee409..ddbf00daa3fce8344799a0aa1896734f1c32c5fa 100644
--- a/chrome/browser/tracing/crash_service_uploader.cc
+++ b/chrome/browser/tracing/crash_service_uploader.cc
@@ -14,6 +14,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "components/tracing/tracing_switches.h"
#include "components/version_info/version_info.h"
#include "content/public/browser/browser_thread.h"
@@ -91,8 +92,8 @@ void TraceCrashServiceUploader::OnURLFetchComplete(
void TraceCrashServiceUploader::OnURLFetchUploadProgress(
const net::URLFetcher* source,
- int64 current,
- int64 total) {
+ int64_t current,
+ int64_t total) {
DCHECK(url_fetcher_.get());
LOG(WARNING) << "Upload progress: " << current << " of " << total;
@@ -271,9 +272,9 @@ bool TraceCrashServiceUploader::Compress(std::string input,
8, // memLevel = 8 is default.
Z_DEFAULT_STRATEGY);
DCHECK_EQ(Z_OK, result);
- stream.next_in = reinterpret_cast<uint8*>(&input[0]);
+ stream.next_in = reinterpret_cast<uint8_t*>(&input[0]);
stream.avail_in = input.size();
- stream.next_out = reinterpret_cast<uint8*>(compressed);
+ stream.next_out = reinterpret_cast<uint8_t*>(compressed);
stream.avail_out = max_compressed_bytes;
// Do a one-shot compression. This will return Z_STREAM_END only if |output|
// is large enough to hold all compressed data.
« no previous file with comments | « chrome/browser/tracing/crash_service_uploader.h ('k') | chrome/browser/tracing/navigation_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698