Fix an implicit 64-bit to 32-bit conversion.

../../third_party/crashpad/crashpad/util/misc/metrics.cc(66,35):  error: implicit conversion loses integer precision: 'crashpad::FileOffset' (aka 'long long') to 'base::HistogramBase::Sample' (aka 'int') [-Werror,-Wshorten-64-to-32]
      "Crashpad.CrashReportSize", size, 0, 20 * 1024 * 1024, 50);
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Also, remove some unneeded static_casts.

BUG=588506

Change-Id: I0c12079db173e44c07e2f1d02322747cb2d69535
Reviewed-on: https://chromium-review.googlesource.com/1184227
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
1 file changed
tree: eec7d56164ee12b2d579e57d55af4b7d924354d0
  1. .clang-format
  2. .gitignore
  3. .gn
  4. AUTHORS
  5. BUILD.gn
  6. CONTRIBUTORS
  7. DEPS
  8. LICENSE
  9. README.md
  10. build/
  11. client/
  12. codereview.settings
  13. compat/
  14. crashpad.gyp
  15. doc/
  16. handler/
  17. infra/
  18. minidump/
  19. navbar.md
  20. package.h
  21. snapshot/
  22. test/
  23. third_party/
  24. tools/
  25. util/
README.md

Crashpad

Crashpad is a crash-reporting system.

Documentation

Source Code

Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.

Other Links