Inline kBackwardsClockTolerance in header

kBackwardsClockTolerance is in a header file, so it should be inlined to
ensure it's not duplicated across translation units.

This fixes the following Chromium presubmit warning:

Consider inlining constexpr variable definitions in headers outside of classes
to avoid unnecessary copies of the constant. See https://abseil.io/tips/168 for
more details.
  third_party\crashpad\crashpad\handler\crash_report_upload_rate_limit.h: 29
    constexpr int kBackwardsClockTolerance = 60 * 60 * 24;  // 1 day

Bug: 42310127
Change-Id: Ie37ec72f62f5e3ee8c8080e5e1dd951a575e248a
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/7056627
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Jesse McKenna <jessemckenna@google.com>
1 file changed
tree: 083a6948df91a64e4e2c716be47c3133e3e7404d
  1. build/
  2. client/
  3. compat/
  4. doc/
  5. handler/
  6. infra/
  7. minidump/
  8. snapshot/
  9. test/
  10. third_party/
  11. tools/
  12. util/
  13. .clang-format
  14. .gitattributes
  15. .gitignore
  16. .gn
  17. .style.yapf
  18. .vpython3
  19. AUTHORS
  20. BUILD.gn
  21. codereview.settings
  22. CONTRIBUTORS
  23. DEPS
  24. LICENSE
  25. navbar.md
  26. OWNERS
  27. package.h
  28. README.md
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